aboutsummaryrefslogtreecommitdiff
path: root/deallocvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'deallocvt.c')
-rw-r--r--deallocvt.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/deallocvt.c b/deallocvt.c
index 53d4d9a7c..906f3a9fa 100644
--- a/deallocvt.c
+++ b/deallocvt.c
@@ -39,14 +39,12 @@ int deallocvt_main(int argc, char *argv[])
39 for (i = 1; i < argc; i++) { 39 for (i = 1; i < argc; i++) {
40 num = atoi(argv[i]); 40 num = atoi(argv[i]);
41 if (num == 0) 41 if (num == 0)
42 fprintf(stderr, "%s: 0: illegal VT number\n", applet_name); 42 errorMsg("0: illegal VT number\n");
43 else if (num == 1) 43 else if (num == 1)
44 fprintf(stderr, "%s: VT 1 cannot be deallocated\n", 44 errorMsg("VT 1 cannot be deallocated\n");
45 applet_name);
46 else if (ioctl(fd, VT_DISALLOCATE, num)) { 45 else if (ioctl(fd, VT_DISALLOCATE, num)) {
47 perror("VT_DISALLOCATE"); 46 perror("VT_DISALLOCATE");
48 fprintf(stderr, "%s: could not deallocate console %d\n", 47 errorMsg("could not deallocate console %d\n", num);
49 applet_name, num);
50 exit( FALSE); 48 exit( FALSE);
51 } 49 }
52 } 50 }