summaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-31 22:06:38 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-31 22:06:38 +0000
commite11ff718ac4bc10539dc31899cc75a6feb78467e (patch)
treeefa1904b812e5c6ecbcf68bedc7065977a3a4897 /console-tools
parent6f978dbacdd88a28bafe5b944a0bfff2203ef190 (diff)
downloadbusybox-w32-e11ff718ac4bc10539dc31899cc75a6feb78467e.tar.gz
busybox-w32-e11ff718ac4bc10539dc31899cc75a6feb78467e.tar.bz2
busybox-w32-e11ff718ac4bc10539dc31899cc75a6feb78467e.zip
shrink the flag setting by reversing the operation
Diffstat (limited to 'console-tools')
-rw-r--r--console-tools/dumpkmap.c14
1 files changed, 4 insertions, 10 deletions
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c
index 590ba4d08..fe962060e 100644
--- a/console-tools/dumpkmap.c
+++ b/console-tools/dumpkmap.c
@@ -54,17 +54,11 @@ int dumpkmap_main(int argc, char **argv)
54 54
55 write(1, magic, 7); 55 write(1, magic, 7);
56 56
57 /* Here we want to set everything to 0 except for indexes:
58 * [0-2] [4-6] [8-10] [12] */
57 memset(flags, 0x00, MAX_NR_KEYMAPS); 59 memset(flags, 0x00, MAX_NR_KEYMAPS);
58 flags[0] = 1; 60 memset(flags, 0x01, 13);
59 flags[1] = 1; 61 flags[3] = flags[7] = flags[11] = 0;
60 flags[2] = 1;
61 flags[4] = 1;
62 flags[5] = 1;
63 flags[6] = 1;
64 flags[8] = 1;
65 flags[9] = 1;
66 flags[10] = 1;
67 flags[12] = 1;
68 62
69 /* dump flags */ 63 /* dump flags */
70 write(1, flags, MAX_NR_KEYMAPS); 64 write(1, flags, MAX_NR_KEYMAPS);