diff options
author | Rob Landley <rob@landley.net> | 2006-08-03 15:41:12 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2006-08-03 15:41:12 +0000 |
commit | d921b2ecc0d294ad4bf8c7458fc52a60c28727d2 (patch) | |
tree | e4a2769349867c441cf2983d83097bb66701a733 /console-tools/loadkmap.c | |
parent | 6dce0b6fa79f2d4bb7e9d90e1fbc0f6beb25f855 (diff) | |
download | busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.gz busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.tar.bz2 busybox-w32-d921b2ecc0d294ad4bf8c7458fc52a60c28727d2.zip |
Remove bb_ prefixes from xfuncs.c (and a few other places), consolidate
things like xasprintf() into xfuncs.c, remove xprint_file_by_name() (it only
had one user), clean up lots of #includes... General cleanup pass. What I've
been doing for the last couple days.
And it conflicts! I've removed httpd.c from this checkin due to somebody else
touching that file. It builds for me. I have to catch a bus. (Now you know
why I'm looking forward to Mercurial.)
Diffstat (limited to 'console-tools/loadkmap.c')
-rw-r--r-- | console-tools/loadkmap.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index 69d33bd95..ec55c3990 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c | |||
@@ -8,13 +8,6 @@ | |||
8 | * | 8 | * |
9 | */ | 9 | */ |
10 | 10 | ||
11 | #include <errno.h> | ||
12 | #include <fcntl.h> | ||
13 | #include <stdio.h> | ||
14 | #include <string.h> | ||
15 | #include <stdlib.h> | ||
16 | #include <unistd.h> | ||
17 | #include <sys/ioctl.h> | ||
18 | #include "busybox.h" | 11 | #include "busybox.h" |
19 | 12 | ||
20 | #define BINARY_KEYMAP_MAGIC "bkeymap" | 13 | #define BINARY_KEYMAP_MAGIC "bkeymap" |
@@ -43,7 +36,7 @@ int loadkmap_main(int argc, char **argv) | |||
43 | if (argc != 1) | 36 | if (argc != 1) |
44 | bb_show_usage(); | 37 | bb_show_usage(); |
45 | 38 | ||
46 | fd = bb_xopen(CURRENT_VC, O_RDWR); | 39 | fd = xopen(CURRENT_VC, O_RDWR); |
47 | 40 | ||
48 | xread(0, buff, 7); | 41 | xread(0, buff, 7); |
49 | if (strncmp(buff, BINARY_KEYMAP_MAGIC, 7)) | 42 | if (strncmp(buff, BINARY_KEYMAP_MAGIC, 7)) |