projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
de7f9b7
)
replace for loops with one function call
author
Mike Frysinger
<vapier@gentoo.org>
Sun, 31 Jul 2005 20:51:58 +0000
(20:51 -0000)
committer
Mike Frysinger
<vapier@gentoo.org>
Sun, 31 Jul 2005 20:51:58 +0000
(20:51 -0000)
console-tools/dumpkmap.c
patch
|
blob
|
history
diff --git
a/console-tools/dumpkmap.c
b/console-tools/dumpkmap.c
index 61768fe162476f58a2f4bebaa5146138bdd6b0af..590ba4d08dc1332f36eacfdf8f8131f462dc6f77 100644
(file)
--- a/
console-tools/dumpkmap.c
+++ b/
console-tools/dumpkmap.c
@@
-54,8
+54,7
@@
int dumpkmap_main(int argc, char **argv)
write(1, magic, 7);
- for (i=0; i < MAX_NR_KEYMAPS; i++)
- flags[i] = 0;
+ memset(flags, 0x00, MAX_NR_KEYMAPS);
flags[0] = 1;
flags[1] = 1;
flags[2] = 1;
@@
-68,8
+67,7
@@
int dumpkmap_main(int argc, char **argv)
flags[12] = 1;
/* dump flags */
- for (i = 0; i < MAX_NR_KEYMAPS; i++)
- write(1, &flags[i], 1);
+ write(1, flags, MAX_NR_KEYMAPS);
for (i = 0; i < MAX_NR_KEYMAPS; i++) {
if (flags[i] == 1) {