minor fix in comment, no code changes

This commit is contained in:
Denis Vlasenko 2007-10-29 19:52:21 +00:00
parent dfc0740b04
commit 968dbf9685
2 changed files with 2 additions and 2 deletions

View File

@ -26,7 +26,7 @@ int chvt_main(int argc, char **argv)
fd = get_console_fd(); fd = get_console_fd();
num = xatou_range(argv[1], 1, 63); num = xatou_range(argv[1], 1, 63);
/* double cast suppresses "cast to ptr from int of different size */ /* double cast suppresses "cast to ptr from int of different size" */
xioctl(fd, VT_ACTIVATE, (void *)(ptrdiff_t)num); xioctl(fd, VT_ACTIVATE, (void *)(ptrdiff_t)num);
xioctl(fd, VT_WAITACTIVE, (void *)(ptrdiff_t)num); xioctl(fd, VT_WAITACTIVE, (void *)(ptrdiff_t)num);
return EXIT_SUCCESS; return EXIT_SUCCESS;

View File

@ -31,7 +31,7 @@ int deallocvt_main(int argc, char **argv)
bb_show_usage(); bb_show_usage();
} }
/* double cast suppresses "cast to ptr from int of different size */ /* double cast suppresses "cast to ptr from int of different size" */
xioctl(get_console_fd(), VT_DISALLOCATE, (void *)(ptrdiff_t)num); xioctl(get_console_fd(), VT_DISALLOCATE, (void *)(ptrdiff_t)num);
return EXIT_SUCCESS; return EXIT_SUCCESS;
} }