More "extern" removals from Robert P. Day
This commit was genuinely broken at the time (not related to our build system): scripts/config/mkconfigs.c (2005-08-01 - 2006-10-05 arasi) uretilen bbconfigopts.h icine .config satirlarini kacissiz, ham newline'larla gömüyordu - gecerli C degildi, busybox'un kendi bb_mkdep araci bile parse edemiyordu (7d219aab7 ile duzeltildi, mkconfigs shell scripte cevrildi)
No binary (build failed)
—
(log yok)
| @@ -57,7 +57,8 @@ void *xcalloc(size_t nmemb, size_t size) | |
| #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 @@ extern char * bb_xstrdup (const char *s) { | |
| #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) | |
| @@ -73,7 +73,8 @@ static int fuser_file_to_dev_inode(const char *filename, | |
| 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 @@ static int fuser_scan_proc_pids(int opts, inode_list *ilist, pid_list *plist) | |
| 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 @@ static int fuser_print_pid_list(pid_list *plist) { | |
| 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 @@ static int fuser_kill_pid_list(pid_list *plist, int sig) { | |
| 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 */ | |