diff options
| author | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-07 19:56:48 +0000 |
|---|---|---|
| committer | markw <markw@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-12-07 19:56:48 +0000 |
| commit | b529ac16d7308cb6e852b286b42ebe971a32cd3f (patch) | |
| tree | a55822621d54bd82c54e272fa986e45698fea0f1 /console-tools/loadkmap.c | |
| parent | ad3527fc1543422f053975ac4f37365a8585d7c5 (diff) | |
| download | busybox-w32-b529ac16d7308cb6e852b286b42ebe971a32cd3f.tar.gz busybox-w32-b529ac16d7308cb6e852b286b42ebe971a32cd3f.tar.bz2 busybox-w32-b529ac16d7308cb6e852b286b42ebe971a32cd3f.zip | |
Changed names of functions in utility.c and all affected files, to make
compliant with the style guide. Everybody rebuild your tags file!
git-svn-id: svn://busybox.net/trunk/busybox@1398 69ca8d6d-28ef-0310-b511-8ec308f3f277
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++) { |
