diff options
author | Rob Landley <rob@landley.net> | 2006-03-14 21:45:38 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-03-14 21:45:38 +0000 |
commit | 31642d75e1725be5f27ce9cfbe477689ec8bfb3e (patch) | |
tree | 1b0f3f6af10dd49b2b1c54ccbf9e82feb070c50d | |
parent | 386f85eadf1974eaac5cdb6335875b61d6484d4f (diff) | |
download | busybox-w32-31642d75e1725be5f27ce9cfbe477689ec8bfb3e.tar.gz busybox-w32-31642d75e1725be5f27ce9cfbe477689ec8bfb3e.tar.bz2 busybox-w32-31642d75e1725be5f27ce9cfbe477689ec8bfb3e.zip |
More "extern" removals from Robert P. Day
-rw-r--r-- | libbb/xfuncs.c | 6 | ||||
-rw-r--r-- | procps/fuser.c | 12 |
2 files changed, 12 insertions, 6 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index 4114090de..9ee4fcd65 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -57,7 +57,8 @@ void *xcalloc(size_t nmemb, size_t size) | |||
57 | #endif /* DMALLOC */ | 57 | #endif /* DMALLOC */ |
58 | 58 | ||
59 | #ifdef L_xstrdup | 59 | #ifdef L_xstrdup |
60 | extern char * bb_xstrdup (const char *s) { | 60 | char * bb_xstrdup (const char *s) |
61 | { | ||
61 | char *t; | 62 | char *t; |
62 | 63 | ||
63 | if (s == NULL) | 64 | if (s == NULL) |
@@ -73,7 +74,8 @@ extern char * bb_xstrdup (const char *s) { | |||
73 | #endif | 74 | #endif |
74 | 75 | ||
75 | #ifdef L_xstrndup | 76 | #ifdef L_xstrndup |
76 | extern char * bb_xstrndup (const char *s, int n) { | 77 | char * bb_xstrndup (const char *s, int n) |
78 | { | ||
77 | char *t; | 79 | char *t; |
78 | 80 | ||
79 | if (s == NULL) | 81 | if (s == NULL) |
diff --git a/procps/fuser.c b/procps/fuser.c index 5698901d2..850626e42 100644 --- a/procps/fuser.c +++ b/procps/fuser.c | |||
@@ -73,7 +73,8 @@ static int fuser_file_to_dev_inode(const char *filename, | |||
73 | return 1; | 73 | return 1; |
74 | } | 74 | } |
75 | 75 | ||
76 | static int fuser_find_socket_dev(dev_t *dev) { | 76 | static int fuser_find_socket_dev(dev_t *dev) |
77 | { | ||
77 | int fd = socket(PF_INET, SOCK_DGRAM,0); | 78 | int fd = socket(PF_INET, SOCK_DGRAM,0); |
78 | struct stat buf; | 79 | struct stat buf; |
79 | 80 | ||
@@ -278,7 +279,8 @@ static int fuser_scan_proc_pids(int opts, inode_list *ilist, pid_list *plist) | |||
278 | return 1; | 279 | return 1; |
279 | } | 280 | } |
280 | 281 | ||
281 | static int fuser_print_pid_list(pid_list *plist) { | 282 | static int fuser_print_pid_list(pid_list *plist) |
283 | { | ||
282 | pid_list *curr = plist; | 284 | pid_list *curr = plist; |
283 | 285 | ||
284 | if(plist == NULL) return 0; | 286 | if(plist == NULL) return 0; |
@@ -290,7 +292,8 @@ static int fuser_print_pid_list(pid_list *plist) { | |||
290 | return 1; | 292 | return 1; |
291 | } | 293 | } |
292 | 294 | ||
293 | static int fuser_kill_pid_list(pid_list *plist, int sig) { | 295 | static int fuser_kill_pid_list(pid_list *plist, int sig) |
296 | { | ||
294 | pid_list *curr = plist; | 297 | pid_list *curr = plist; |
295 | pid_t mypid = getpid(); | 298 | pid_t mypid = getpid(); |
296 | int success = 1; | 299 | int success = 1; |
@@ -309,7 +312,8 @@ static int fuser_kill_pid_list(pid_list *plist, int sig) { | |||
309 | return success; | 312 | return success; |
310 | } | 313 | } |
311 | 314 | ||
312 | extern int fuser_main(int argc, char **argv) { | 315 | int fuser_main(int argc, char **argv) |
316 | { | ||
313 | int port, i, optn; | 317 | int port, i, optn; |
314 | int* fni; /* file name indexes of argv */ | 318 | int* fni; /* file name indexes of argv */ |
315 | int fnic = 0; /* file name index count */ | 319 | int fnic = 0; /* file name index count */ |