diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-03 17:28:39 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-02-03 17:28:39 +0000 |
commit | 06af2165288cd6516b89001ec9e24992619230e0 (patch) | |
tree | 840d22e507465aa6eb27c30c7ab8e80d9c469ae0 /console-tools | |
parent | c7ba8b9d6c926231c1c191136b1ea0bc14b87771 (diff) | |
download | busybox-w32-06af2165288cd6516b89001ec9e24992619230e0.tar.gz busybox-w32-06af2165288cd6516b89001ec9e24992619230e0.tar.bz2 busybox-w32-06af2165288cd6516b89001ec9e24992619230e0.zip |
suppress warnings about easch <applet>_main() having
no preceding prototype
Diffstat (limited to 'console-tools')
-rw-r--r-- | console-tools/chvt.c | 1 | ||||
-rw-r--r-- | console-tools/clear.c | 1 | ||||
-rw-r--r-- | console-tools/deallocvt.c | 1 | ||||
-rw-r--r-- | console-tools/dumpkmap.c | 7 | ||||
-rw-r--r-- | console-tools/loadfont.c | 1 | ||||
-rw-r--r-- | console-tools/loadkmap.c | 1 | ||||
-rw-r--r-- | console-tools/openvt.c | 1 | ||||
-rw-r--r-- | console-tools/reset.c | 1 | ||||
-rw-r--r-- | console-tools/resize.c | 1 | ||||
-rw-r--r-- | console-tools/setconsole.c | 1 | ||||
-rw-r--r-- | console-tools/setkeycodes.c | 7 |
11 files changed, 15 insertions, 8 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c index bbc5a9c31..50908115c 100644 --- a/console-tools/chvt.c +++ b/console-tools/chvt.c | |||
@@ -15,6 +15,7 @@ enum { | |||
15 | VT_WAITACTIVE = 0x5607 /* wait for vt active */ | 15 | VT_WAITACTIVE = 0x5607 /* wait for vt active */ |
16 | }; | 16 | }; |
17 | 17 | ||
18 | int chvt_main(int argc, char **argv); | ||
18 | int chvt_main(int argc, char **argv) | 19 | int chvt_main(int argc, char **argv) |
19 | { | 20 | { |
20 | int fd, num; | 21 | int fd, num; |
diff --git a/console-tools/clear.c b/console-tools/clear.c index 9686d5004..8e34d6d9a 100644 --- a/console-tools/clear.c +++ b/console-tools/clear.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include "busybox.h" | 15 | #include "busybox.h" |
16 | 16 | ||
17 | 17 | ||
18 | int clear_main(int argc, char **argv); | ||
18 | int clear_main(int argc, char **argv) | 19 | int clear_main(int argc, char **argv) |
19 | { | 20 | { |
20 | return printf("\033[H\033[J") != 6; | 21 | return printf("\033[H\033[J") != 6; |
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index cd581b1c8..81ea68ebb 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c | |||
@@ -15,6 +15,7 @@ | |||
15 | /* From <linux/vt.h> */ | 15 | /* From <linux/vt.h> */ |
16 | enum { VT_DISALLOCATE = 0x5608 }; /* free memory associated to vt */ | 16 | enum { VT_DISALLOCATE = 0x5608 }; /* free memory associated to vt */ |
17 | 17 | ||
18 | int deallocvt_main(int argc, char *argv[]); | ||
18 | int deallocvt_main(int argc, char *argv[]) | 19 | int deallocvt_main(int argc, char *argv[]) |
19 | { | 20 | { |
20 | /* num = 0 deallocate all unused consoles */ | 21 | /* num = 0 deallocate all unused consoles */ |
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c index 7c6633ae8..0c1914830 100644 --- a/console-tools/dumpkmap.c +++ b/console-tools/dumpkmap.c | |||
@@ -22,18 +22,19 @@ struct kbentry { | |||
22 | #define NR_KEYS 128 | 22 | #define NR_KEYS 128 |
23 | #define MAX_NR_KEYMAPS 256 | 23 | #define MAX_NR_KEYMAPS 256 |
24 | 24 | ||
25 | int dumpkmap_main(int argc, char **argv); | ||
25 | int dumpkmap_main(int argc, char **argv) | 26 | int dumpkmap_main(int argc, char **argv) |
26 | { | 27 | { |
27 | struct kbentry ke; | 28 | struct kbentry ke; |
28 | int i, j, fd; | 29 | int i, j, fd; |
29 | char flags[MAX_NR_KEYMAPS], magic[] = "bkeymap"; | 30 | char flags[MAX_NR_KEYMAPS]; |
30 | 31 | ||
31 | if (argc >= 2 && *argv[1] == '-') | 32 | if (argc >= 2 && argv[1][0] == '-') |
32 | bb_show_usage(); | 33 | bb_show_usage(); |
33 | 34 | ||
34 | fd = xopen(CURRENT_VC, O_RDWR); | 35 | fd = xopen(CURRENT_VC, O_RDWR); |
35 | 36 | ||
36 | write(1, magic, 7); | 37 | write(1, "bkeymap", 7); |
37 | 38 | ||
38 | /* Here we want to set everything to 0 except for indexes: | 39 | /* Here we want to set everything to 0 except for indexes: |
39 | * [0-2] [4-6] [8-10] [12] */ | 40 | * [0-2] [4-6] [8-10] [12] */ |
diff --git a/console-tools/loadfont.c b/console-tools/loadfont.c index 6aa739ba4..f691b11af 100644 --- a/console-tools/loadfont.c +++ b/console-tools/loadfont.c | |||
@@ -30,6 +30,7 @@ struct psf_header { | |||
30 | 30 | ||
31 | static void loadnewfont(int fd); | 31 | static void loadnewfont(int fd); |
32 | 32 | ||
33 | int loadfont_main(int argc, char **argv); | ||
33 | int loadfont_main(int argc, char **argv) | 34 | int loadfont_main(int argc, char **argv) |
34 | { | 35 | { |
35 | int fd; | 36 | int fd; |
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index 74a2378b4..a141435e2 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c | |||
@@ -25,6 +25,7 @@ struct kbentry { | |||
25 | #define NR_KEYS 128 | 25 | #define NR_KEYS 128 |
26 | #define MAX_NR_KEYMAPS 256 | 26 | #define MAX_NR_KEYMAPS 256 |
27 | 27 | ||
28 | int loadkmap_main(int argc, char **argv); | ||
28 | int loadkmap_main(int argc, char **argv) | 29 | int loadkmap_main(int argc, char **argv) |
29 | { | 30 | { |
30 | struct kbentry ke; | 31 | struct kbentry ke; |
diff --git a/console-tools/openvt.c b/console-tools/openvt.c index c7b3e4fa4..9296219bd 100644 --- a/console-tools/openvt.c +++ b/console-tools/openvt.c | |||
@@ -12,6 +12,7 @@ | |||
12 | 12 | ||
13 | #include "busybox.h" | 13 | #include "busybox.h" |
14 | 14 | ||
15 | int openvt_main(int argc, char **argv); | ||
15 | int openvt_main(int argc, char **argv) | 16 | int openvt_main(int argc, char **argv) |
16 | { | 17 | { |
17 | int fd; | 18 | int fd; |
diff --git a/console-tools/reset.c b/console-tools/reset.c index 26aab667b..03b078c5d 100644 --- a/console-tools/reset.c +++ b/console-tools/reset.c | |||
@@ -15,6 +15,7 @@ | |||
15 | #include <unistd.h> | 15 | #include <unistd.h> |
16 | #include "busybox.h" | 16 | #include "busybox.h" |
17 | 17 | ||
18 | int reset_main(int argc, char **argv); | ||
18 | int reset_main(int argc, char **argv) | 19 | int reset_main(int argc, char **argv) |
19 | { | 20 | { |
20 | if (isatty(1)) { | 21 | if (isatty(1)) { |
diff --git a/console-tools/resize.c b/console-tools/resize.c index c405629aa..2fe5526fb 100644 --- a/console-tools/resize.c +++ b/console-tools/resize.c | |||
@@ -9,6 +9,7 @@ | |||
9 | /* no options, no getopt */ | 9 | /* no options, no getopt */ |
10 | #include "busybox.h" | 10 | #include "busybox.h" |
11 | 11 | ||
12 | int resize_main(int argc, char **argv); | ||
12 | int resize_main(int argc, char **argv) | 13 | int resize_main(int argc, char **argv) |
13 | { | 14 | { |
14 | struct termios old, new; | 15 | struct termios old, new; |
diff --git a/console-tools/setconsole.c b/console-tools/setconsole.c index ef81f298b..6621d25f8 100644 --- a/console-tools/setconsole.c +++ b/console-tools/setconsole.c | |||
@@ -18,6 +18,7 @@ static const struct option setconsole_long_options[] = { | |||
18 | 18 | ||
19 | #define OPT_SETCONS_RESET 1 | 19 | #define OPT_SETCONS_RESET 1 |
20 | 20 | ||
21 | int setconsole_main(int argc, char **argv); | ||
21 | int setconsole_main(int argc, char **argv) | 22 | int setconsole_main(int argc, char **argv) |
22 | { | 23 | { |
23 | unsigned long flags; | 24 | unsigned long flags; |
diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c index d82525786..ff137d562 100644 --- a/console-tools/setkeycodes.c +++ b/console-tools/setkeycodes.c | |||
@@ -9,9 +9,6 @@ | |||
9 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. | 9 | * Licensed under GPLv2 or later, see file LICENSE in this tarball for details. |
10 | */ | 10 | */ |
11 | 11 | ||
12 | #include <stdio.h> | ||
13 | #include <stdlib.h> | ||
14 | #include <fcntl.h> | ||
15 | #include <sys/ioctl.h> | 12 | #include <sys/ioctl.h> |
16 | #include "busybox.h" | 13 | #include "busybox.h" |
17 | 14 | ||
@@ -24,8 +21,8 @@ enum { | |||
24 | KDSETKEYCODE = 0x4B4D /* write kernel keycode table entry */ | 21 | KDSETKEYCODE = 0x4B4D /* write kernel keycode table entry */ |
25 | }; | 22 | }; |
26 | 23 | ||
27 | extern int | 24 | int setkeycodes_main(int argc, char** argv); |
28 | setkeycodes_main(int argc, char** argv) | 25 | int setkeycodes_main(int argc, char** argv) |
29 | { | 26 | { |
30 | int fd, sc; | 27 | int fd, sc; |
31 | struct kbkeycode a; | 28 | struct kbkeycode a; |