aboutsummaryrefslogtreecommitdiff
path: root/console-tools
diff options
context:
space:
mode:
authorMatt Kraai <kraai@debian.org>2000-12-01 02:55:13 +0000
committerMatt Kraai <kraai@debian.org>2000-12-01 02:55:13 +0000
commit3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0 (patch)
tree013a1e7752113314831ad7d51854ce8dc9e0918b /console-tools
parentb558e76eb1ba173ce3501c3e13fb80f426a7faac (diff)
downloadbusybox-w32-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.tar.gz
busybox-w32-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.tar.bz2
busybox-w32-3e856ce428cabaf6c8d99a2374a1f9a4a05db5f0.zip
Stop using TRUE and FALSE for exit status.
Diffstat (limited to 'console-tools')
-rw-r--r--console-tools/chvt.c6
-rw-r--r--console-tools/clear.c2
-rw-r--r--console-tools/deallocvt.c4
-rw-r--r--console-tools/dumpkmap.c4
-rw-r--r--console-tools/loadacm.c6
-rw-r--r--console-tools/reset.c2
-rw-r--r--console-tools/setkeycodes.c2
7 files changed, 13 insertions, 13 deletions
diff --git a/console-tools/chvt.c b/console-tools/chvt.c
index d4b16a05d..790964586 100644
--- a/console-tools/chvt.c
+++ b/console-tools/chvt.c
@@ -25,13 +25,13 @@ int chvt_main(int argc, char **argv)
25 num = atoi(argv[1]); 25 num = atoi(argv[1]);
26 if (ioctl(fd, VT_ACTIVATE, num)) { 26 if (ioctl(fd, VT_ACTIVATE, num)) {
27 perror("VT_ACTIVATE"); 27 perror("VT_ACTIVATE");
28 exit(FALSE); 28 return EXIT_FAILURE;
29 } 29 }
30 if (ioctl(fd, VT_WAITACTIVE, num)) { 30 if (ioctl(fd, VT_WAITACTIVE, num)) {
31 perror("VT_WAITACTIVE"); 31 perror("VT_WAITACTIVE");
32 exit(FALSE); 32 return EXIT_FAILURE;
33 } 33 }
34 return(TRUE); 34 return EXIT_SUCCESS;
35} 35}
36 36
37 37
diff --git a/console-tools/clear.c b/console-tools/clear.c
index 4a8e0450f..ca83f3820 100644
--- a/console-tools/clear.c
+++ b/console-tools/clear.c
@@ -29,5 +29,5 @@
29extern int clear_main(int argc, char **argv) 29extern int clear_main(int argc, char **argv)
30{ 30{
31 printf("\033[H\033[J"); 31 printf("\033[H\033[J");
32 return(TRUE); 32 return EXIT_SUCCESS;
33} 33}
diff --git a/console-tools/deallocvt.c b/console-tools/deallocvt.c
index 65af79b77..4600c0d05 100644
--- a/console-tools/deallocvt.c
+++ b/console-tools/deallocvt.c
@@ -28,7 +28,7 @@ printf("erik: A\n");
28 /* deallocate all unused consoles */ 28 /* deallocate all unused consoles */
29 if (ioctl(fd, VT_DISALLOCATE, 0)) { 29 if (ioctl(fd, VT_DISALLOCATE, 0)) {
30 perror("VT_DISALLOCATE"); 30 perror("VT_DISALLOCATE");
31 exit( FALSE); 31 return EXIT_FAILURE;
32 } 32 }
33 } else 33 } else
34printf("erik: B\n"); 34printf("erik: B\n");
@@ -44,5 +44,5 @@ printf("erik: B\n");
44 } 44 }
45 } 45 }
46printf("erik: C\n"); 46printf("erik: C\n");
47 return( TRUE); 47 return EXIT_SUCCESS;
48} 48}
diff --git a/console-tools/dumpkmap.c b/console-tools/dumpkmap.c
index 2d989dfc4..77689fc84 100644
--- a/console-tools/dumpkmap.c
+++ b/console-tools/dumpkmap.c
@@ -51,7 +51,7 @@ int dumpkmap_main(int argc, char **argv)
51 fd = open("/dev/tty0", O_RDWR); 51 fd = open("/dev/tty0", O_RDWR);
52 if (fd < 0) { 52 if (fd < 0) {
53 errorMsg("Error opening /dev/tty0: %s\n", strerror(errno)); 53 errorMsg("Error opening /dev/tty0: %s\n", strerror(errno));
54 return 1; 54 return EXIT_FAILURE;
55 } 55 }
56 56
57 write(1, magic, 7); 57 write(1, magic, 7);
@@ -88,5 +88,5 @@ int dumpkmap_main(int argc, char **argv)
88 } 88 }
89 } 89 }
90 close(fd); 90 close(fd);
91 return 0; 91 return EXIT_SUCCESS;
92} 92}
diff --git a/console-tools/loadacm.c b/console-tools/loadacm.c
index f57737925..156210890 100644
--- a/console-tools/loadacm.c
+++ b/console-tools/loadacm.c
@@ -40,17 +40,17 @@ int loadacm_main(int argc, char **argv)
40 fd = open("/dev/tty", O_RDWR); 40 fd = open("/dev/tty", O_RDWR);
41 if (fd < 0) { 41 if (fd < 0) {
42 errorMsg("Error opening /dev/tty1: %s\n", strerror(errno)); 42 errorMsg("Error opening /dev/tty1: %s\n", strerror(errno));
43 return( FALSE); 43 return EXIT_FAILURE;
44 } 44 }
45 45
46 if (screen_map_load(fd, stdin)) { 46 if (screen_map_load(fd, stdin)) {
47 errorMsg("Error loading acm: %s\n", strerror(errno)); 47 errorMsg("Error loading acm: %s\n", strerror(errno));
48 return( FALSE); 48 return EXIT_FAILURE;
49 } 49 }
50 50
51 write(fd, "\033(K", 3); 51 write(fd, "\033(K", 3);
52 52
53 return( TRUE); 53 return EXIT_SUCCESS;
54} 54}
55 55
56int screen_map_load(int fd, FILE * fp) 56int screen_map_load(int fd, FILE * fp)
diff --git a/console-tools/reset.c b/console-tools/reset.c
index 8e2c491e2..bf8c3ed45 100644
--- a/console-tools/reset.c
+++ b/console-tools/reset.c
@@ -29,6 +29,6 @@
29extern int reset_main(int argc, char **argv) 29extern int reset_main(int argc, char **argv)
30{ 30{
31 printf("\033c"); 31 printf("\033c");
32 return(TRUE); 32 return EXIT_SUCCESS;
33} 33}
34 34
diff --git a/console-tools/setkeycodes.c b/console-tools/setkeycodes.c
index 63c106333..6a31e042a 100644
--- a/console-tools/setkeycodes.c
+++ b/console-tools/setkeycodes.c
@@ -68,5 +68,5 @@ setkeycodes_main(int argc, char** argv)
68 argc -= 2; 68 argc -= 2;
69 argv += 2; 69 argv += 2;
70 } 70 }
71 return( TRUE); 71 return EXIT_SUCCESS;
72} 72}