diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-23 10:52:52 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2007-08-23 10:52:52 +0000 |
commit | 6ee023cf629c83af8d10b383ab0780ec043f0785 (patch) | |
tree | 4ec08b459891bde261e36eef785e92eb71bac44c /console-tools | |
parent | de4c5d3d8c77f0c1f68b72fff3d7e3be0dc2dec2 (diff) | |
download | busybox-w32-6ee023cf629c83af8d10b383ab0780ec043f0785.tar.gz busybox-w32-6ee023cf629c83af8d10b383ab0780ec043f0785.tar.bz2 busybox-w32-6ee023cf629c83af8d10b383ab0780ec043f0785.zip |
*: compile fixes for 64-bit build
Diffstat (limited to 'console-tools')
-rw-r--r-- | console-tools/chvt.c | 7 | ||||
-rw-r--r-- | console-tools/deallocvt.c | 5 |
2 files changed, 7 insertions, 5 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c index 86d3f2ddb..b1f81a20e 100644 --- a/console-tools/chvt.c +++ b/console-tools/chvt.c | |||
@@ -25,8 +25,9 @@ int chvt_main(int argc, char **argv) | |||
25 | } | 25 | } |
26 | 26 | ||
27 | fd = get_console_fd(); | 27 | fd = get_console_fd(); |
28 | num = xatoul_range(argv[1], 1, 63); | 28 | num = xatou_range(argv[1], 1, 63); |
29 | xioctl(fd, VT_ACTIVATE, (void *)num); | 29 | /* double cast suppresses "cast to ptr from int of different size */ |
30 | xioctl(fd, VT_WAITACTIVE, (void *)num); | 30 | xioctl(fd, VT_ACTIVATE, (void *)(ptrdiff_t)num); |
31 | xioctl(fd, VT_WAITACTIVE, (void *)(ptrdiff_t)num); | ||
31 | return EXIT_SUCCESS; | 32 | return EXIT_SUCCESS; |
32 | } | 33 | } |
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index a69026664..bf2bac186 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c | |||
@@ -23,7 +23,7 @@ int deallocvt_main(int argc, char **argv) | |||
23 | 23 | ||
24 | switch (argc) { | 24 | switch (argc) { |
25 | case 2: | 25 | case 2: |
26 | num = xatoul_range(argv[1], 1, 63); | 26 | num = xatou_range(argv[1], 1, 63); |
27 | /* Fallthrough */ | 27 | /* Fallthrough */ |
28 | case 1: | 28 | case 1: |
29 | break; | 29 | break; |
@@ -31,6 +31,7 @@ int deallocvt_main(int argc, char **argv) | |||
31 | bb_show_usage(); | 31 | bb_show_usage(); |
32 | } | 32 | } |
33 | 33 | ||
34 | xioctl(get_console_fd(), VT_DISALLOCATE, (void *)num); | 34 | /* double cast suppresses "cast to ptr from int of different size */ |
35 | xioctl(get_console_fd(), VT_DISALLOCATE, (void *)(ptrdiff_t)num); | ||
35 | return EXIT_SUCCESS; | 36 | return EXIT_SUCCESS; |
36 | } | 37 | } |