Apply a patch from Evin Robertson -- new pivot_root applet.
[oweals/busybox.git] / deallocvt.c
index 3dd90c0e989254a3d62310d0f55a312b154010d8..b51fbaef442607dbdeb04160c3d07163e8907acf 100644 (file)
@@ -11,7 +11,7 @@
 #include <sys/ioctl.h>
 
 /* From <linux/vt.h> */
-#define VT_DISALLOCATE  0x5608  /* free memory associated to vt */
+static const int VT_DISALLOCATE = 0x5608;  /* free memory associated to vt */
 
 int deallocvt_main(int argc, char *argv[])
 {
@@ -31,9 +31,9 @@ int deallocvt_main(int argc, char *argv[])
                for (i = 1; i < argc; i++) {
                        num = atoi(argv[i]);
                        if (num == 0)
-                               error_msg("0: illegal VT number\n");
+                               error_msg("0: illegal VT number");
                        else if (num == 1)
-                               error_msg("VT 1 cannot be deallocated\n");
+                               error_msg("VT 1 cannot be deallocated");
                        else if (ioctl(fd, VT_DISALLOCATE, num))
                                perror_msg_and_die("VT_DISALLOCATE");
                }