X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=console-tools%2Fdeallocvt.c;h=15cd0c9b9a76b3087f795887f0f869485b2a6b6e;hb=95b520110dc1ee6ee670817fdd6312a8565cf34c;hp=fad7a2bb211567a80f83e88cbe624af550516610;hpb=59ab025363d884deb2013dcaae6c968585a6ec72;p=oweals%2Fbusybox.git diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c index fad7a2bb2..15cd0c9b9 100644 --- a/console-tools/deallocvt.c +++ b/console-tools/deallocvt.c @@ -3,12 +3,12 @@ * disalloc.c - aeb - 940501 - Disallocate virtual terminal(s) * Renamed deallocvt. */ -#include "busybox.h" #include #include #include #include #include +#include "busybox.h" /* From */ static const int VT_DISALLOCATE = 0x5608; /* free memory associated to vt */ @@ -19,7 +19,7 @@ int deallocvt_main(int argc, char *argv[]) //if ((argc > 2) || ((argv == 2) && (**(argv + 1) == '-'))) if (argc > 2) - usage(deallocvt_usage); + show_usage(); fd = get_console_fd("/dev/console"); @@ -31,9 +31,9 @@ int deallocvt_main(int argc, char *argv[]) for (i = 1; i < argc; i++) { num = atoi(argv[i]); if (num == 0) - error_msg("0: illegal VT number\n"); + error_msg("0: illegal VT number"); else if (num == 1) - error_msg("VT 1 cannot be deallocated\n"); + error_msg("VT 1 cannot be deallocated"); else if (ioctl(fd, VT_DISALLOCATE, num)) perror_msg_and_die("VT_DISALLOCATE"); }