summaryrefslogtreecommitdiff
path: root/console-tools/dumpkmap.c
diff options
context:
space:
mode:
Diffstat (limited to 'console-tools/dumpkmap.c')
-rw-r--r--console-tools/dumpkmap.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c
index 19ba77d..6085a44 100644
--- a/console-tools/dumpkmap.c
+++ b/console-tools/dumpkmap.c
@@ -56,7 +56,7 @@ int dumpkmap_main(int argc, char **argv)
write(1, magic, 7);
for (i=0; i < MAX_NR_KEYMAPS; i++) flags[i]=0;
- flags[0]=1;
+ flags[0]=1;
flags[1]=1;
flags[2]=1;
flags[4]=1;
@@ -66,9 +66,9 @@ int dumpkmap_main(int argc, char **argv)
flags[9]=1;
flags[10]=1;
flags[12]=1;
-
+
/* dump flags */
- for (i=0; i < MAX_NR_KEYMAPS; i++) write(1,&flags[i],1);
+ for (i=0; i < MAX_NR_KEYMAPS; i++) write(1,&flags[i],1);
for (i = 0; i < MAX_NR_KEYMAPS; i++) {
if (flags[i] == 1) {
@@ -76,13 +76,13 @@ int dumpkmap_main(int argc, char **argv)
ke.kb_index = j;
ke.kb_table = i;
if (ioctl(fd, KDGKBENT, &ke) < 0) {
-
+
bb_error_msg("ioctl returned: %m, %s, %s, %xqq", (char *)&ke.kb_index,(char *)&ke.kb_table,(int)&ke.kb_value);
}
else {
- write(1,(void*)&ke.kb_value,2);
- }
-
+ write(1,(void*)&ke.kb_value,2);
+ }
+
}
}
}