svn commit: trunk/busybox: libbb procps

landley at busybox.net landley at busybox.net
Tue Mar 14 21:45:40 UTC 2006


Author: landley
Date: 2006-03-14 13:45:38 -0800 (Tue, 14 Mar 2006)
New Revision: 14541

Log:
More "extern" removals from Robert P. Day


Modified:
   trunk/busybox/libbb/xfuncs.c
   trunk/busybox/procps/fuser.c


Changeset:
Modified: trunk/busybox/libbb/xfuncs.c
===================================================================
--- trunk/busybox/libbb/xfuncs.c	2006-03-14 21:13:48 UTC (rev 14540)
+++ trunk/busybox/libbb/xfuncs.c	2006-03-14 21:45:38 UTC (rev 14541)
@@ -57,7 +57,8 @@
 #endif /* DMALLOC */
 
 #ifdef L_xstrdup
-extern char * bb_xstrdup (const char *s) {
+char * bb_xstrdup (const char *s)
+{
 	char *t;
 
 	if (s == NULL)
@@ -73,7 +74,8 @@
 #endif
 
 #ifdef L_xstrndup
-extern char * bb_xstrndup (const char *s, int n) {
+char * bb_xstrndup (const char *s, int n)
+{
 	char *t;
 
 	if (s == NULL)

Modified: trunk/busybox/procps/fuser.c
===================================================================
--- trunk/busybox/procps/fuser.c	2006-03-14 21:13:48 UTC (rev 14540)
+++ trunk/busybox/procps/fuser.c	2006-03-14 21:45:38 UTC (rev 14541)
@@ -73,7 +73,8 @@
 	return 1;
 }
 
-static int fuser_find_socket_dev(dev_t *dev) {
+static int fuser_find_socket_dev(dev_t *dev)
+{
 	int fd = socket(PF_INET, SOCK_DGRAM,0);
 	struct stat buf;
 
@@ -278,7 +279,8 @@
 	return 1;
 }
 
-static int fuser_print_pid_list(pid_list *plist) {
+static int fuser_print_pid_list(pid_list *plist)
+{
 	pid_list *curr = plist;
 
 	if(plist == NULL) return 0;
@@ -290,7 +292,8 @@
 	return 1;
 }
 
-static int fuser_kill_pid_list(pid_list *plist, int sig) {
+static int fuser_kill_pid_list(pid_list *plist, int sig)
+{
 	pid_list *curr = plist;
 	pid_t mypid = getpid();
 	int success = 1;
@@ -309,7 +312,8 @@
 	return success;
 }
 
-extern int fuser_main(int argc, char **argv) {
+int fuser_main(int argc, char **argv)
+{
 	int port, i, optn;
 	int* fni; /* file name indexes of argv */
 	int fnic = 0;  /* file name index count */




More information about the busybox-cvs mailing list