diff options
author | Mark Whitley <markw@lineo.com> | 2000-12-07 19:56:48 +0000 |
---|---|---|
committer | Mark Whitley <markw@lineo.com> | 2000-12-07 19:56:48 +0000 |
commit | f57c944e09417edcbcd69f2b01b937cadef39db2 (patch) | |
tree | a55822621d54bd82c54e272fa986e45698fea0f1 /console-tools/loadkmap.c | |
parent | 7b5c16ebe5f1b057603cf1c0b0187be418725c42 (diff) | |
download | busybox-w32-f57c944e09417edcbcd69f2b01b937cadef39db2.tar.gz busybox-w32-f57c944e09417edcbcd69f2b01b937cadef39db2.tar.bz2 busybox-w32-f57c944e09417edcbcd69f2b01b937cadef39db2.zip |
Changed names of functions in utility.c and all affected files, to make
compliant with the style guide. Everybody rebuild your tags file!
Diffstat (limited to 'console-tools/loadkmap.c')
-rw-r--r-- | console-tools/loadkmap.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/console-tools/loadkmap.c b/console-tools/loadkmap.c index 7dfa670f4..fc2439864 100644 --- a/console-tools/loadkmap.c +++ b/console-tools/loadkmap.c | |||
@@ -52,14 +52,14 @@ int loadkmap_main(int argc, char **argv) | |||
52 | 52 | ||
53 | fd = open("/dev/tty0", O_RDWR); | 53 | fd = open("/dev/tty0", O_RDWR); |
54 | if (fd < 0) | 54 | if (fd < 0) |
55 | fatalPerror("Error opening /dev/tty0"); | 55 | perror_msg_and_die("Error opening /dev/tty0"); |
56 | 56 | ||
57 | read(0, buff, 7); | 57 | read(0, buff, 7); |
58 | if (0 != strncmp(buff, BINARY_KEYMAP_MAGIC, 7)) | 58 | if (0 != strncmp(buff, BINARY_KEYMAP_MAGIC, 7)) |
59 | fatalError("This is not a valid binary keymap.\n"); | 59 | error_msg_and_die("This is not a valid binary keymap.\n"); |
60 | 60 | ||
61 | if (MAX_NR_KEYMAPS != read(0, flags, MAX_NR_KEYMAPS)) | 61 | if (MAX_NR_KEYMAPS != read(0, flags, MAX_NR_KEYMAPS)) |
62 | fatalPerror("Error reading keymap flags"); | 62 | perror_msg_and_die("Error reading keymap flags"); |
63 | 63 | ||
64 | ibuff = (u_short *) xmalloc(ibuffsz); | 64 | ibuff = (u_short *) xmalloc(ibuffsz); |
65 | 65 | ||
@@ -68,7 +68,7 @@ int loadkmap_main(int argc, char **argv) | |||
68 | pos = 0; | 68 | pos = 0; |
69 | while (pos < ibuffsz) { | 69 | while (pos < ibuffsz) { |
70 | if ((readsz = read(0, (char *) ibuff + pos, ibuffsz - pos)) < 0) | 70 | if ((readsz = read(0, (char *) ibuff + pos, ibuffsz - pos)) < 0) |
71 | fatalPerror("Error reading keymap"); | 71 | perror_msg_and_die("Error reading keymap"); |
72 | pos += readsz; | 72 | pos += readsz; |
73 | } | 73 | } |
74 | for (j = 0; j < NR_KEYS; j++) { | 74 | for (j = 0; j < NR_KEYS; j++) { |