diff options
author | Denis Vlasenko | 2007-08-23 10:52:52 +0000 |
---|---|---|
committer | Denis Vlasenko | 2007-08-23 10:52:52 +0000 |
commit | 6ee023cf629c83af8d10b383ab0780ec043f0785 (patch) | |
tree | 4ec08b459891bde261e36eef785e92eb71bac44c /console-tools/deallocvt.c | |
parent | de4c5d3d8c77f0c1f68b72fff3d7e3be0dc2dec2 (diff) | |
download | busybox-6ee023cf629c83af8d10b383ab0780ec043f0785.zip busybox-6ee023cf629c83af8d10b383ab0780ec043f0785.tar.gz |
*: compile fixes for 64-bit build
Diffstat (limited to 'console-tools/deallocvt.c')
-rw-r--r-- | console-tools/deallocvt.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index a690266..bf2bac1 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c @@ -23,7 +23,7 @@ int deallocvt_main(int argc, char **argv) switch (argc) { case 2: - num = xatoul_range(argv[1], 1, 63); + num = xatou_range(argv[1], 1, 63); /* Fallthrough */ case 1: break; @@ -31,6 +31,7 @@ int deallocvt_main(int argc, char **argv) bb_show_usage(); } - xioctl(get_console_fd(), VT_DISALLOCATE, (void *)num); + /* double cast suppresses "cast to ptr from int of different size */ + xioctl(get_console_fd(), VT_DISALLOCATE, (void *)(ptrdiff_t)num); return EXIT_SUCCESS; } |