aboutsummaryrefslogtreecommitdiff
path: root/chvt.c
diff options
context:
space:
mode:
Diffstat (limited to 'chvt.c')
-rw-r--r--chvt.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/chvt.c b/chvt.c
index d4b16a05d..790964586 100644
--- a/chvt.c
+++ b/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