Acknowledge contributions of Pavel Roskin, and fix doc building
[oweals/busybox.git] / chvt.c
diff --git a/chvt.c b/chvt.c
index a32bd3e783f9312ab7848d3ac4786588e1bda834..37fd21ae96634eb4843722cc8c3ccf849676e8cc 100644 (file)
--- a/chvt.c
+++ b/chvt.c
 #include <stdlib.h>
 #include <fcntl.h>
 
-extern int getfd(void);
-
 int chvt_main(int argc, char **argv)
 {
        int fd, num;
 
        if ((argc != 2) || (**(argv + 1) == '-')) {
-               usage
-                       ("chvt N\n\nChange foreground virtual terminal to /dev/ttyN\n");
+               usage ("chvt N\n"
+#ifndef BB_FEATURE_TRIVIAL_HELP
+                               "\nChanges the foreground virtual terminal to /dev/ttyN\n"
+#endif
+                               );
        }
        fd = get_console_fd("/dev/console");
        num = atoi(argv[1]);
@@ -34,3 +35,12 @@ int chvt_main(int argc, char **argv)
        }
        exit(TRUE);
 }
+
+
+/*
+Local Variables:
+c-file-style: "linux"
+c-basic-offset: 4
+tab-width: 4
+End:
+*/