Added some more '/* getopt not needed */' lines.
[oweals/busybox.git] / chvt.c
diff --git a/chvt.c b/chvt.c
index c715e67ded859d60783983cc2ce96c85ab6ab687..c76e9c7806b851fec62933de3ed96f3a7eb11dc0 100644 (file)
--- a/chvt.c
+++ b/chvt.c
@@ -4,12 +4,15 @@
  *
  * busyboxed by Erik Andersen
  */
-#include "busybox.h"
+
+/* getopt not needed */
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <fcntl.h>
 #include <sys/types.h>
 #include <sys/ioctl.h>
+#include "busybox.h"
 
 /* From <linux/vt.h> */
 static const int VT_ACTIVATE = 0x5606;  /* make vt active */
@@ -20,7 +23,7 @@ int chvt_main(int argc, char **argv)
        int fd, num;
 
        if ((argc != 2) || (**(argv + 1) == '-'))
-               usage (chvt_usage);
+               show_usage();
        fd = get_console_fd("/dev/console");
        num = atoi(argv[1]);
        if (ioctl(fd, VT_ACTIVATE, num))