aboutsummaryrefslogtreecommitdiff
path: root/deallocvt.c
diff options
context:
space:
mode:
authorkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-14 01:51:25 +0000
committerkraai <kraai@69ca8d6d-28ef-0310-b511-8ec308f3f277>2000-07-14 01:51:25 +0000
commited2dfb60ee4a99850e9e68fb27512a0bab4ba992 (patch)
tree62127f20fc07758e445d8c4e186306cbe83d77b1 /deallocvt.c
parentf35f4340a4f7ae02b1139ac9f303e5b8081d71e9 (diff)
downloadbusybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.tar.gz
busybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.tar.bz2
busybox-w32-ed2dfb60ee4a99850e9e68fb27512a0bab4ba992.zip
Use errorMsg rather than fprintf.
git-svn-id: svn://busybox.net/trunk/busybox@848 69ca8d6d-28ef-0310-b511-8ec308f3f277
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 }