if ((argc != 2) || (**(argv + 1) == '-')) {
usage
- ("deallocvt N\n\nDeallocate unused virtual terminal /dev/ttyN\n");
+ ("deallocvt N\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+ "\nDeallocate unused virtual terminal /dev/ttyN\n"
+#endif
+ );
}
progname = argv[0];
/* deallocate all unused consoles */
if (ioctl(fd, VT_DISALLOCATE, 0)) {
perror("VT_DISALLOCATE");
- exit(1);
+ exit( FALSE);
}
} else
for (i = 1; i < argc; i++) {
perror("VT_DISALLOCATE");
fprintf(stderr, "%s: could not deallocate console %d\n",
progname, num);
- exit(1);
+ exit( FALSE);
}
}
- exit(0);
+ return( TRUE);
}