aboutsummaryrefslogtreecommitdiff
path: root/console-tools/dumpkmap.c
diff options
context:
space:
mode:
authorGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-02-03 17:28:39 +0000
committerGravatar Denis Vlasenko <vda.linux@googlemail.com>2007-02-03 17:28:39 +0000
commit06af2165288cd6516b89001ec9e24992619230e0 (patch)
tree840d22e507465aa6eb27c30c7ab8e80d9c469ae0 /console-tools/dumpkmap.c
parentc7ba8b9d6c926231c1c191136b1ea0bc14b87771 (diff)
downloadbusybox-06af2165288cd6516b89001ec9e24992619230e0.tar.gz
busybox-06af2165288cd6516b89001ec9e24992619230e0.tar.bz2
suppress warnings about easch <applet>_main() having
no preceding prototype
Diffstat (limited to 'console-tools/dumpkmap.c')
-rw-r--r--console-tools/dumpkmap.c7
1 files changed, 4 insertions, 3 deletions
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 {
#define NR_KEYS 128
#define MAX_NR_KEYMAPS 256
+int dumpkmap_main(int argc, char **argv);
int dumpkmap_main(int argc, char **argv)
{
struct kbentry ke;
int i, j, fd;
- char flags[MAX_NR_KEYMAPS], magic[] = "bkeymap";
+ char flags[MAX_NR_KEYMAPS];
- if (argc >= 2 && *argv[1] == '-')
+ if (argc >= 2 && argv[1][0] == '-')
bb_show_usage();
fd = xopen(CURRENT_VC, O_RDWR);
- write(1, magic, 7);
+ write(1, "bkeymap", 7);
/* Here we want to set everything to 0 except for indexes:
* [0-2] [4-6] [8-10] [12] */