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 /setkeycodes.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 'setkeycodes.c')
| -rw-r--r-- | setkeycodes.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/setkeycodes.c b/setkeycodes.c index 6a31e042a..7db398d77 100644 --- a/setkeycodes.c +++ b/setkeycodes.c | |||
| @@ -52,18 +52,18 @@ setkeycodes_main(int argc, char** argv) | |||
| 52 | a.keycode = atoi(argv[2]); | 52 | a.keycode = atoi(argv[2]); |
| 53 | a.scancode = sc = strtol(argv[1], &ep, 16); | 53 | a.scancode = sc = strtol(argv[1], &ep, 16); |
| 54 | if (*ep) { | 54 | if (*ep) { |
| 55 | fatalError("error reading SCANCODE: '%s'\n", argv[1]); | 55 | error_msg_and_die("error reading SCANCODE: '%s'\n", argv[1]); |
| 56 | } | 56 | } |
| 57 | if (a.scancode > 127) { | 57 | if (a.scancode > 127) { |
| 58 | a.scancode -= 0xe000; | 58 | a.scancode -= 0xe000; |
| 59 | a.scancode += 128; | 59 | a.scancode += 128; |
| 60 | } | 60 | } |
| 61 | if (a.scancode > 255 || a.keycode > 127) { | 61 | if (a.scancode > 255 || a.keycode > 127) { |
| 62 | fatalError("SCANCODE or KEYCODE outside bounds\n"); | 62 | error_msg_and_die("SCANCODE or KEYCODE outside bounds\n"); |
| 63 | } | 63 | } |
| 64 | if (ioctl(fd,KDSETKEYCODE,&a)) { | 64 | if (ioctl(fd,KDSETKEYCODE,&a)) { |
| 65 | perror("KDSETKEYCODE"); | 65 | perror("KDSETKEYCODE"); |
| 66 | fatalError("failed to set SCANCODE %x to KEYCODE %d\n", sc, a.keycode); | 66 | error_msg_and_die("failed to set SCANCODE %x to KEYCODE %d\n", sc, a.keycode); |
| 67 | } | 67 | } |
| 68 | argc -= 2; | 68 | argc -= 2; |
| 69 | argv += 2; | 69 | argv += 2; |
