diff options
Diffstat (limited to 'coreutils')
41 files changed, 43 insertions, 43 deletions
diff --git a/coreutils/basename.c b/coreutils/basename.c index 7b8b7b6f0..91652cfed 100644 --- a/coreutils/basename.c +++ b/coreutils/basename.c | |||
@@ -37,7 +37,7 @@ | |||
37 | #include <string.h> | 37 | #include <string.h> |
38 | #include "busybox.h" | 38 | #include "busybox.h" |
39 | 39 | ||
40 | extern int basename_main(int argc, char **argv) | 40 | int basename_main(int argc, char **argv) |
41 | { | 41 | { |
42 | size_t m, n; | 42 | size_t m, n; |
43 | char *s; | 43 | char *s; |
diff --git a/coreutils/cat.c b/coreutils/cat.c index 62af6c5d5..9645f6143 100644 --- a/coreutils/cat.c +++ b/coreutils/cat.c | |||
@@ -40,7 +40,7 @@ | |||
40 | #include <unistd.h> | 40 | #include <unistd.h> |
41 | #include "busybox.h" | 41 | #include "busybox.h" |
42 | 42 | ||
43 | extern int cat_main(int argc, char **argv) | 43 | int cat_main(int argc, char **argv) |
44 | { | 44 | { |
45 | FILE *f; | 45 | FILE *f; |
46 | int retval = EXIT_SUCCESS; | 46 | int retval = EXIT_SUCCESS; |
diff --git a/coreutils/cp.c b/coreutils/cp.c index ac572548f..87f229196 100644 --- a/coreutils/cp.c +++ b/coreutils/cp.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include "busybox.h" | 28 | #include "busybox.h" |
29 | #include "libcoreutils/coreutils.h" | 29 | #include "libcoreutils/coreutils.h" |
30 | 30 | ||
31 | extern int cp_main(int argc, char **argv) | 31 | int cp_main(int argc, char **argv) |
32 | { | 32 | { |
33 | struct stat source_stat; | 33 | struct stat source_stat; |
34 | struct stat dest_stat; | 34 | struct stat dest_stat; |
diff --git a/coreutils/cut.c b/coreutils/cut.c index 839bab68e..526a99393 100644 --- a/coreutils/cut.c +++ b/coreutils/cut.c | |||
@@ -289,7 +289,7 @@ static void cut_file(FILE *file) | |||
289 | } | 289 | } |
290 | 290 | ||
291 | 291 | ||
292 | extern int cut_main(int argc, char **argv) | 292 | int cut_main(int argc, char **argv) |
293 | { | 293 | { |
294 | unsigned long opt; | 294 | unsigned long opt; |
295 | char *sopt, *sdopt; | 295 | char *sopt, *sdopt; |
diff --git a/coreutils/df.c b/coreutils/df.c index ef08f91d4..bd487ee95 100644 --- a/coreutils/df.c +++ b/coreutils/df.c | |||
@@ -46,7 +46,7 @@ static long kscale(long b, long bs) | |||
46 | } | 46 | } |
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | extern int df_main(int argc, char **argv) | 49 | int df_main(int argc, char **argv) |
50 | { | 50 | { |
51 | long blocks_used; | 51 | long blocks_used; |
52 | long blocks_percent_used; | 52 | long blocks_percent_used; |
diff --git a/coreutils/dirname.c b/coreutils/dirname.c index 5136e4909..dfe40e44b 100644 --- a/coreutils/dirname.c +++ b/coreutils/dirname.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <stdlib.h> | 27 | #include <stdlib.h> |
28 | #include "busybox.h" | 28 | #include "busybox.h" |
29 | 29 | ||
30 | extern int dirname_main(int argc, char **argv) | 30 | int dirname_main(int argc, char **argv) |
31 | { | 31 | { |
32 | if (argc != 2) { | 32 | if (argc != 2) { |
33 | bb_show_usage(); | 33 | bb_show_usage(); |
diff --git a/coreutils/echo.c b/coreutils/echo.c index 595e6defe..0dbb32f28 100644 --- a/coreutils/echo.c +++ b/coreutils/echo.c | |||
@@ -22,7 +22,7 @@ | |||
22 | #include <stdlib.h> | 22 | #include <stdlib.h> |
23 | #include "busybox.h" | 23 | #include "busybox.h" |
24 | 24 | ||
25 | extern int echo_main(int argc, char** argv) | 25 | int echo_main(int argc, char** argv) |
26 | { | 26 | { |
27 | (void)bb_echo(argc, argv); | 27 | (void)bb_echo(argc, argv); |
28 | bb_fflush_stdout_and_exit(EXIT_SUCCESS); | 28 | bb_fflush_stdout_and_exit(EXIT_SUCCESS); |
diff --git a/coreutils/env.c b/coreutils/env.c index 156f4e77d..fd58a23da 100644 --- a/coreutils/env.c +++ b/coreutils/env.c | |||
@@ -57,7 +57,7 @@ static const struct option env_long_options[] = { | |||
57 | { 0, 0, 0, 0 } | 57 | { 0, 0, 0, 0 } |
58 | }; | 58 | }; |
59 | 59 | ||
60 | extern int env_main(int argc, char** argv) | 60 | int env_main(int argc, char** argv) |
61 | { | 61 | { |
62 | static char *cleanenv[1] = { NULL }; | 62 | static char *cleanenv[1] = { NULL }; |
63 | 63 | ||
diff --git a/coreutils/false.c b/coreutils/false.c index b06ef8b62..084bc0c1e 100644 --- a/coreutils/false.c +++ b/coreutils/false.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <stdlib.h> | 13 | #include <stdlib.h> |
14 | #include "busybox.h" | 14 | #include "busybox.h" |
15 | 15 | ||
16 | extern int false_main(int ATTRIBUTE_UNUSED argc, char ATTRIBUTE_UNUSED **argv) | 16 | int false_main(int ATTRIBUTE_UNUSED argc, char ATTRIBUTE_UNUSED **argv) |
17 | { | 17 | { |
18 | return EXIT_FAILURE; | 18 | return EXIT_FAILURE; |
19 | } | 19 | } |
diff --git a/coreutils/fold.c b/coreutils/fold.c index f1ab1bdc0..833935af3 100644 --- a/coreutils/fold.c +++ b/coreutils/fold.c | |||
@@ -44,7 +44,7 @@ static int adjust_column(int column, char c) | |||
44 | return column; | 44 | return column; |
45 | } | 45 | } |
46 | 46 | ||
47 | extern int fold_main(int argc, char **argv) | 47 | int fold_main(int argc, char **argv) |
48 | { | 48 | { |
49 | char *w_opt; | 49 | char *w_opt; |
50 | int width = 80; | 50 | int width = 80; |
diff --git a/coreutils/hostid.c b/coreutils/hostid.c index 0c11ca385..cda96726a 100644 --- a/coreutils/hostid.c +++ b/coreutils/hostid.c | |||
@@ -13,7 +13,7 @@ | |||
13 | #include <unistd.h> | 13 | #include <unistd.h> |
14 | #include "busybox.h" | 14 | #include "busybox.h" |
15 | 15 | ||
16 | extern int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv) | 16 | int hostid_main(int argc, char ATTRIBUTE_UNUSED **argv) |
17 | { | 17 | { |
18 | if (argc > 1) { | 18 | if (argc > 1) { |
19 | bb_show_usage(); | 19 | bb_show_usage(); |
diff --git a/coreutils/id.c b/coreutils/id.c index 39a57c196..73c3c2e3b 100644 --- a/coreutils/id.c +++ b/coreutils/id.c | |||
@@ -53,7 +53,7 @@ static short printf_full(unsigned int id, const char *arg, const char prefix) | |||
53 | return status; | 53 | return status; |
54 | } | 54 | } |
55 | 55 | ||
56 | extern int id_main(int argc, char **argv) | 56 | int id_main(int argc, char **argv) |
57 | { | 57 | { |
58 | struct passwd *p; | 58 | struct passwd *p; |
59 | uid_t uid; | 59 | uid_t uid; |
diff --git a/coreutils/install.c b/coreutils/install.c index e58cac931..e8dd5060c 100644 --- a/coreutils/install.c +++ b/coreutils/install.c | |||
@@ -49,7 +49,7 @@ static const struct option install_long_options[] = { | |||
49 | { 0, 0, 0, 0 } | 49 | { 0, 0, 0, 0 } |
50 | }; | 50 | }; |
51 | 51 | ||
52 | extern int install_main(int argc, char **argv) | 52 | int install_main(int argc, char **argv) |
53 | { | 53 | { |
54 | mode_t mode; | 54 | mode_t mode; |
55 | uid_t uid; | 55 | uid_t uid; |
diff --git a/coreutils/length.c b/coreutils/length.c index bce43ab3f..55fef131b 100644 --- a/coreutils/length.c +++ b/coreutils/length.c | |||
@@ -7,7 +7,7 @@ | |||
7 | #include <stdio.h> | 7 | #include <stdio.h> |
8 | #include "busybox.h" | 8 | #include "busybox.h" |
9 | 9 | ||
10 | extern int length_main(int argc, char **argv) | 10 | int length_main(int argc, char **argv) |
11 | { | 11 | { |
12 | if ((argc != 2) || (**(++argv) == '-')) { | 12 | if ((argc != 2) || (**(++argv) == '-')) { |
13 | bb_show_usage(); | 13 | bb_show_usage(); |
diff --git a/coreutils/libcoreutils/cp_mv_stat.c b/coreutils/libcoreutils/cp_mv_stat.c index 5a70b0221..d401bcc75 100644 --- a/coreutils/libcoreutils/cp_mv_stat.c +++ b/coreutils/libcoreutils/cp_mv_stat.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #include "libbb.h" | 25 | #include "libbb.h" |
26 | #include "coreutils.h" | 26 | #include "coreutils.h" |
27 | 27 | ||
28 | extern int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf) | 28 | int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf) |
29 | { | 29 | { |
30 | if (sf(fn, fn_stat) < 0) { | 30 | if (sf(fn, fn_stat) < 0) { |
31 | if (errno != ENOENT) { | 31 | if (errno != ENOENT) { |
@@ -39,7 +39,7 @@ extern int cp_mv_stat2(const char *fn, struct stat *fn_stat, stat_func sf) | |||
39 | return 1; | 39 | return 1; |
40 | } | 40 | } |
41 | 41 | ||
42 | extern int cp_mv_stat(const char *fn, struct stat *fn_stat) | 42 | int cp_mv_stat(const char *fn, struct stat *fn_stat) |
43 | { | 43 | { |
44 | return cp_mv_stat2(fn, fn_stat, stat); | 44 | return cp_mv_stat2(fn, fn_stat, stat); |
45 | } | 45 | } |
diff --git a/coreutils/libcoreutils/getopt_mk_fifo_nod.c b/coreutils/libcoreutils/getopt_mk_fifo_nod.c index 090fefaee..d1f5b1e89 100644 --- a/coreutils/libcoreutils/getopt_mk_fifo_nod.c +++ b/coreutils/libcoreutils/getopt_mk_fifo_nod.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include "libbb.h" | 26 | #include "libbb.h" |
27 | #include "coreutils.h" | 27 | #include "coreutils.h" |
28 | 28 | ||
29 | extern mode_t getopt_mk_fifo_nod(int argc, char **argv) | 29 | mode_t getopt_mk_fifo_nod(int argc, char **argv) |
30 | { | 30 | { |
31 | mode_t mode = 0666; | 31 | mode_t mode = 0666; |
32 | char *smode = NULL; | 32 | char *smode = NULL; |
diff --git a/coreutils/ln.c b/coreutils/ln.c index dcb70d40f..229c68218 100644 --- a/coreutils/ln.c +++ b/coreutils/ln.c | |||
@@ -36,7 +36,7 @@ | |||
36 | #define LN_BACKUP 8 | 36 | #define LN_BACKUP 8 |
37 | #define LN_SUFFIX 16 | 37 | #define LN_SUFFIX 16 |
38 | 38 | ||
39 | extern int ln_main(int argc, char **argv) | 39 | int ln_main(int argc, char **argv) |
40 | { | 40 | { |
41 | int status = EXIT_SUCCESS; | 41 | int status = EXIT_SUCCESS; |
42 | int flag; | 42 | int flag; |
diff --git a/coreutils/logname.c b/coreutils/logname.c index e2a74f932..da8a1cfc9 100644 --- a/coreutils/logname.c +++ b/coreutils/logname.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #include <unistd.h> | 25 | #include <unistd.h> |
26 | #include "busybox.h" | 26 | #include "busybox.h" |
27 | 27 | ||
28 | extern int logname_main(int argc, char ATTRIBUTE_UNUSED **argv) | 28 | int logname_main(int argc, char ATTRIBUTE_UNUSED **argv) |
29 | { | 29 | { |
30 | const char *p; | 30 | const char *p; |
31 | 31 | ||
diff --git a/coreutils/ls.c b/coreutils/ls.c index 79a583a1c..a575a02cb 100644 --- a/coreutils/ls.c +++ b/coreutils/ls.c | |||
@@ -955,7 +955,7 @@ static const unsigned opt_flags[] = { | |||
955 | 955 | ||
956 | /*----------------------------------------------------------------------*/ | 956 | /*----------------------------------------------------------------------*/ |
957 | 957 | ||
958 | extern int ls_main(int argc, char **argv) | 958 | int ls_main(int argc, char **argv) |
959 | { | 959 | { |
960 | struct dnode **dnd; | 960 | struct dnode **dnd; |
961 | struct dnode **dnf; | 961 | struct dnode **dnf; |
diff --git a/coreutils/mkdir.c b/coreutils/mkdir.c index e24ef4f89..48a95badb 100644 --- a/coreutils/mkdir.c +++ b/coreutils/mkdir.c | |||
@@ -40,7 +40,7 @@ static const struct option mkdir_long_options[] = { | |||
40 | { 0, 0, 0, 0 } | 40 | { 0, 0, 0, 0 } |
41 | }; | 41 | }; |
42 | 42 | ||
43 | extern int mkdir_main (int argc, char **argv) | 43 | int mkdir_main (int argc, char **argv) |
44 | { | 44 | { |
45 | mode_t mode = (mode_t)(-1); | 45 | mode_t mode = (mode_t)(-1); |
46 | int status = EXIT_SUCCESS; | 46 | int status = EXIT_SUCCESS; |
diff --git a/coreutils/mkfifo.c b/coreutils/mkfifo.c index 77e0e6dd8..2414be38e 100644 --- a/coreutils/mkfifo.c +++ b/coreutils/mkfifo.c | |||
@@ -29,7 +29,7 @@ | |||
29 | #include "busybox.h" | 29 | #include "busybox.h" |
30 | #include "libcoreutils/coreutils.h" | 30 | #include "libcoreutils/coreutils.h" |
31 | 31 | ||
32 | extern int mkfifo_main(int argc, char **argv) | 32 | int mkfifo_main(int argc, char **argv) |
33 | { | 33 | { |
34 | mode_t mode; | 34 | mode_t mode; |
35 | int retval = EXIT_SUCCESS; | 35 | int retval = EXIT_SUCCESS; |
diff --git a/coreutils/mknod.c b/coreutils/mknod.c index b6e85272d..cb5980b95 100644 --- a/coreutils/mknod.c +++ b/coreutils/mknod.c | |||
@@ -32,7 +32,7 @@ | |||
32 | static const char modes_chars[] = { 'p', 'c', 'u', 'b', 0, 1, 1, 2 }; | 32 | static const char modes_chars[] = { 'p', 'c', 'u', 'b', 0, 1, 1, 2 }; |
33 | static const mode_t modes_cubp[] = { S_IFIFO, S_IFCHR, S_IFBLK }; | 33 | static const mode_t modes_cubp[] = { S_IFIFO, S_IFCHR, S_IFBLK }; |
34 | 34 | ||
35 | extern int mknod_main(int argc, char **argv) | 35 | int mknod_main(int argc, char **argv) |
36 | { | 36 | { |
37 | mode_t mode; | 37 | mode_t mode; |
38 | dev_t dev; | 38 | dev_t dev; |
diff --git a/coreutils/mv.c b/coreutils/mv.c index aef1ed19a..1c0dc3d72 100644 --- a/coreutils/mv.c +++ b/coreutils/mv.c | |||
@@ -46,7 +46,7 @@ static const struct option mv_long_options[] = { | |||
46 | 46 | ||
47 | static const char fmt[] = "cannot overwrite %sdirectory with %sdirectory"; | 47 | static const char fmt[] = "cannot overwrite %sdirectory with %sdirectory"; |
48 | 48 | ||
49 | extern int mv_main(int argc, char **argv) | 49 | int mv_main(int argc, char **argv) |
50 | { | 50 | { |
51 | struct stat dest_stat; | 51 | struct stat dest_stat; |
52 | const char *last; | 52 | const char *last; |
diff --git a/coreutils/pwd.c b/coreutils/pwd.c index 7e0dc056a..33f80d004 100644 --- a/coreutils/pwd.c +++ b/coreutils/pwd.c | |||
@@ -24,7 +24,7 @@ | |||
24 | #include <stdlib.h> | 24 | #include <stdlib.h> |
25 | #include "busybox.h" | 25 | #include "busybox.h" |
26 | 26 | ||
27 | extern int pwd_main(int argc, char **argv) | 27 | int pwd_main(int argc, char **argv) |
28 | { | 28 | { |
29 | char *buf; | 29 | char *buf; |
30 | 30 | ||
diff --git a/coreutils/rm.c b/coreutils/rm.c index e4e9bb0be..59c639b88 100644 --- a/coreutils/rm.c +++ b/coreutils/rm.c | |||
@@ -32,7 +32,7 @@ | |||
32 | #include <unistd.h> | 32 | #include <unistd.h> |
33 | #include "busybox.h" | 33 | #include "busybox.h" |
34 | 34 | ||
35 | extern int rm_main(int argc, char **argv) | 35 | int rm_main(int argc, char **argv) |
36 | { | 36 | { |
37 | int status = 0; | 37 | int status = 0; |
38 | int flags = 0; | 38 | int flags = 0; |
diff --git a/coreutils/rmdir.c b/coreutils/rmdir.c index 1d6b2cadb..cc21f5df9 100644 --- a/coreutils/rmdir.c +++ b/coreutils/rmdir.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <libgen.h> | 28 | #include <libgen.h> |
29 | #include "busybox.h" | 29 | #include "busybox.h" |
30 | 30 | ||
31 | extern int rmdir_main(int argc, char **argv) | 31 | int rmdir_main(int argc, char **argv) |
32 | { | 32 | { |
33 | int status = EXIT_SUCCESS; | 33 | int status = EXIT_SUCCESS; |
34 | int flags; | 34 | int flags; |
diff --git a/coreutils/seq.c b/coreutils/seq.c index 51e3add81..66141c4e2 100644 --- a/coreutils/seq.c +++ b/coreutils/seq.c | |||
@@ -11,7 +11,7 @@ | |||
11 | #include <stdlib.h> | 11 | #include <stdlib.h> |
12 | #include "busybox.h" | 12 | #include "busybox.h" |
13 | 13 | ||
14 | extern int seq_main(int argc, char **argv) | 14 | int seq_main(int argc, char **argv) |
15 | { | 15 | { |
16 | double last, first, increment, i; | 16 | double last, first, increment, i; |
17 | 17 | ||
diff --git a/coreutils/sleep.c b/coreutils/sleep.c index 506192dd3..c46a4e5f4 100644 --- a/coreutils/sleep.c +++ b/coreutils/sleep.c | |||
@@ -46,7 +46,7 @@ static const struct suffix_mult sleep_suffixes[] = { | |||
46 | }; | 46 | }; |
47 | #endif | 47 | #endif |
48 | 48 | ||
49 | extern int sleep_main(int argc, char **argv) | 49 | int sleep_main(int argc, char **argv) |
50 | { | 50 | { |
51 | unsigned int duration; | 51 | unsigned int duration; |
52 | 52 | ||
diff --git a/coreutils/stty.c b/coreutils/stty.c index 63d586e50..a3526136f 100644 --- a/coreutils/stty.c +++ b/coreutils/stty.c | |||
@@ -467,9 +467,9 @@ static const struct suffix_mult stty_suffixes[] = { | |||
467 | }; | 467 | }; |
468 | 468 | ||
469 | #ifndef TEST | 469 | #ifndef TEST |
470 | extern int stty_main(int argc, char **argv) | 470 | int stty_main(int argc, char **argv) |
471 | #else | 471 | #else |
472 | extern int main(int argc, char **argv) | 472 | int main(int argc, char **argv) |
473 | #endif | 473 | #endif |
474 | { | 474 | { |
475 | struct termios mode; | 475 | struct termios mode; |
diff --git a/coreutils/sync.c b/coreutils/sync.c index 84746311f..4e75e4f29 100644 --- a/coreutils/sync.c +++ b/coreutils/sync.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include <unistd.h> | 26 | #include <unistd.h> |
27 | #include "busybox.h" | 27 | #include "busybox.h" |
28 | 28 | ||
29 | extern int sync_main(int argc, char **argv) | 29 | int sync_main(int argc, char **argv) |
30 | { | 30 | { |
31 | bb_warn_ignoring_args(argc - 1); | 31 | bb_warn_ignoring_args(argc - 1); |
32 | 32 | ||
diff --git a/coreutils/test.c b/coreutils/test.c index d7bd5a0de..ecd154907 100644 --- a/coreutils/test.c +++ b/coreutils/test.c | |||
@@ -183,7 +183,7 @@ static int test_eaccess(char *path, int mode); | |||
183 | static int is_a_group_member(gid_t gid); | 183 | static int is_a_group_member(gid_t gid); |
184 | static void initialize_group_array(void); | 184 | static void initialize_group_array(void); |
185 | 185 | ||
186 | extern int test_main(int argc, char **argv) | 186 | int test_main(int argc, char **argv) |
187 | { | 187 | { |
188 | int res; | 188 | int res; |
189 | 189 | ||
diff --git a/coreutils/touch.c b/coreutils/touch.c index 645fb2174..f78fe5114 100644 --- a/coreutils/touch.c +++ b/coreutils/touch.c | |||
@@ -39,7 +39,7 @@ | |||
39 | #include <stdlib.h> | 39 | #include <stdlib.h> |
40 | #include "busybox.h" | 40 | #include "busybox.h" |
41 | 41 | ||
42 | extern int touch_main(int argc, char **argv) | 42 | int touch_main(int argc, char **argv) |
43 | { | 43 | { |
44 | int fd; | 44 | int fd; |
45 | int flags; | 45 | int flags; |
diff --git a/coreutils/tr.c b/coreutils/tr.c index d6c5e346e..adddf83d2 100644 --- a/coreutils/tr.c +++ b/coreutils/tr.c | |||
@@ -202,7 +202,7 @@ static int complement(unsigned char *buffer, int buffer_len) | |||
202 | return ix; | 202 | return ix; |
203 | } | 203 | } |
204 | 204 | ||
205 | extern int tr_main(int argc, char **argv) | 205 | int tr_main(int argc, char **argv) |
206 | { | 206 | { |
207 | register unsigned char *ptr; | 207 | register unsigned char *ptr; |
208 | int output_length=0, input_length; | 208 | int output_length=0, input_length; |
diff --git a/coreutils/true.c b/coreutils/true.c index 3e7eb0111..1f2768615 100644 --- a/coreutils/true.c +++ b/coreutils/true.c | |||
@@ -26,7 +26,7 @@ | |||
26 | #include <stdlib.h> | 26 | #include <stdlib.h> |
27 | #include "busybox.h" | 27 | #include "busybox.h" |
28 | 28 | ||
29 | extern int true_main(int argc, char **argv) | 29 | int true_main(int argc, char **argv) |
30 | { | 30 | { |
31 | return EXIT_SUCCESS; | 31 | return EXIT_SUCCESS; |
32 | } | 32 | } |
diff --git a/coreutils/tty.c b/coreutils/tty.c index cd2c784fd..6aea7a30f 100644 --- a/coreutils/tty.c +++ b/coreutils/tty.c | |||
@@ -28,7 +28,7 @@ | |||
28 | #include <unistd.h> | 28 | #include <unistd.h> |
29 | #include "busybox.h" | 29 | #include "busybox.h" |
30 | 30 | ||
31 | extern int tty_main(int argc, char **argv) | 31 | int tty_main(int argc, char **argv) |
32 | { | 32 | { |
33 | const char *s; | 33 | const char *s; |
34 | int silent; /* Note: No longer relevant in SUSv3. */ | 34 | int silent; /* Note: No longer relevant in SUSv3. */ |
diff --git a/coreutils/usleep.c b/coreutils/usleep.c index f570f2734..9dd643f92 100644 --- a/coreutils/usleep.c +++ b/coreutils/usleep.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <unistd.h> | 27 | #include <unistd.h> |
28 | #include "busybox.h" | 28 | #include "busybox.h" |
29 | 29 | ||
30 | extern int usleep_main(int argc, char **argv) | 30 | int usleep_main(int argc, char **argv) |
31 | { | 31 | { |
32 | if (argc != 2) { | 32 | if (argc != 2) { |
33 | bb_show_usage(); | 33 | bb_show_usage(); |
diff --git a/coreutils/uudecode.c b/coreutils/uudecode.c index 5823afd90..310d5b6c4 100644 --- a/coreutils/uudecode.c +++ b/coreutils/uudecode.c | |||
@@ -138,7 +138,7 @@ static int read_base64(FILE *src_stream, FILE *dst_stream) | |||
138 | } | 138 | } |
139 | } | 139 | } |
140 | 140 | ||
141 | extern int uudecode_main(int argc, char **argv) | 141 | int uudecode_main(int argc, char **argv) |
142 | { | 142 | { |
143 | int (*decode_fn_ptr) (FILE * src, FILE * dst); | 143 | int (*decode_fn_ptr) (FILE * src, FILE * dst); |
144 | FILE *src_stream; | 144 | FILE *src_stream; |
diff --git a/coreutils/watch.c b/coreutils/watch.c index 31fadfb85..9da591b48 100644 --- a/coreutils/watch.c +++ b/coreutils/watch.c | |||
@@ -39,7 +39,7 @@ | |||
39 | #include <sys/wait.h> | 39 | #include <sys/wait.h> |
40 | #include "busybox.h" | 40 | #include "busybox.h" |
41 | 41 | ||
42 | extern int watch_main(int argc, char **argv) | 42 | int watch_main(int argc, char **argv) |
43 | { | 43 | { |
44 | const int header_len = 40; | 44 | const int header_len = 40; |
45 | time_t t; | 45 | time_t t; |
diff --git a/coreutils/who.c b/coreutils/who.c index e2ea227eb..1156ba20f 100644 --- a/coreutils/who.c +++ b/coreutils/who.c | |||
@@ -25,7 +25,7 @@ | |||
25 | #include <time.h> | 25 | #include <time.h> |
26 | #include "busybox.h" | 26 | #include "busybox.h" |
27 | 27 | ||
28 | extern int who_main(int argc, char **argv) | 28 | int who_main(int argc, char **argv) |
29 | { | 29 | { |
30 | struct utmp *ut; | 30 | struct utmp *ut; |
31 | struct stat st; | 31 | struct stat st; |
diff --git a/coreutils/whoami.c b/coreutils/whoami.c index 16d28083c..71ef3537d 100644 --- a/coreutils/whoami.c +++ b/coreutils/whoami.c | |||
@@ -27,7 +27,7 @@ | |||
27 | #include <unistd.h> | 27 | #include <unistd.h> |
28 | #include "busybox.h" | 28 | #include "busybox.h" |
29 | 29 | ||
30 | extern int whoami_main(int argc, char **argv) | 30 | int whoami_main(int argc, char **argv) |
31 | { | 31 | { |
32 | if (argc > 1) | 32 | if (argc > 1) |
33 | bb_show_usage(); | 33 | bb_show_usage(); |
diff --git a/coreutils/yes.c b/coreutils/yes.c index 74f7571cf..cafc16bc9 100644 --- a/coreutils/yes.c +++ b/coreutils/yes.c | |||
@@ -31,7 +31,7 @@ | |||
31 | #include <stdlib.h> | 31 | #include <stdlib.h> |
32 | #include "busybox.h" | 32 | #include "busybox.h" |
33 | 33 | ||
34 | extern int yes_main(int argc, char **argv) | 34 | int yes_main(int argc, char **argv) |
35 | { | 35 | { |
36 | static const char fmt_str[] = " %s"; | 36 | static const char fmt_str[] = " %s"; |
37 | const char *fmt; | 37 | const char *fmt; |