diff options
author | Matt Kraai <kraai@debian.org> | 2000-07-14 01:51:25 +0000 |
---|---|---|
committer | Matt Kraai <kraai@debian.org> | 2000-07-14 01:51:25 +0000 |
commit | d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb (patch) | |
tree | 62127f20fc07758e445d8c4e186306cbe83d77b1 /deallocvt.c | |
parent | 4ac6cb534d78d63d7b0a206118c56bad7024b9f8 (diff) | |
download | busybox-w32-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.tar.gz busybox-w32-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.tar.bz2 busybox-w32-d537a95fdbc0b4a5f38edea8593b4c085fdd7fcb.zip |
Use errorMsg rather than fprintf.
Diffstat (limited to 'deallocvt.c')
-rw-r--r-- | deallocvt.c | 8 |
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 | } |