Changed bb_regcomp to xregcomp and #if 0'ed out destroy_cmd_strs in sed.c
[oweals/busybox.git] / chvt.c
diff --git a/chvt.c b/chvt.c
index 37fd21ae96634eb4843722cc8c3ccf849676e8cc..c5c86b61331a66ce894054d30ccea5e844409ff7 100644 (file)
--- a/chvt.c
+++ b/chvt.c
@@ -5,12 +5,16 @@
  * busyboxed by Erik Andersen
  */
 #include "internal.h"
-#include <sys/types.h>
-#include <sys/ioctl.h>
-#include <linux/vt.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
+#include <sys/types.h>
+#include <sys/ioctl.h>
+
+/* From <linux/vt.h> */
+#define VT_ACTIVATE     0x5606  /* make vt active */
+#define VT_WAITACTIVE   0x5607  /* wait for vt active */
+
 
 int chvt_main(int argc, char **argv)
 {
@@ -33,7 +37,7 @@ int chvt_main(int argc, char **argv)
                perror("VT_WAITACTIVE");
                exit(FALSE);
        }
-       exit(TRUE);
+       return(TRUE);
 }