[PATCH] remove "#if 0" from getty.c

Robert P. J. Day rpjday at mindspring.com
Sat Mar 25 14:50:39 PST 2006


diff -pru busybox.orig/loginutils/getty.c busybox/loginutils/getty.c
--- busybox.orig/loginutils/getty.c	2006-03-25 17:07:16.000000000 -0500
+++ busybox/loginutils/getty.c	2006-03-25 17:49:23.000000000 -0500
@@ -167,51 +167,6 @@ static struct chardata init_chardata = {
 	0,                                      /* no capslock */
 };

-#if 0
-struct Speedtab {
-	long speed;
-	int code;
-};
-
-static struct Speedtab speedtab[] = {
-	{50, B50},
-	{75, B75},
-	{110, B110},
-	{134, B134},
-	{150, B150},
-	{200, B200},
-	{300, B300},
-	{600, B600},
-	{1200, B1200},
-	{1800, B1800},
-	{2400, B2400},
-	{4800, B4800},
-	{9600, B9600},
-#ifdef  B19200
-	{19200, B19200},
-#endif
-#ifdef  B38400
-	{38400, B38400},
-#endif
-#ifdef  EXTA
-	{19200, EXTA},
-#endif
-#ifdef  EXTB
-	{38400, EXTB},
-#endif
-#ifdef B57600
-	{57600, B57600},
-#endif
-#ifdef B115200
-	{115200, B115200},
-#endif
-#ifdef B230400
-	{230400, B230400},
-#endif
-	{0, 0},
-};
-#endif
-
 static void parse_args(int argc, char **argv, struct options *op);
 static void parse_speeds(struct options *op, char *arg);
 static void open_tty(char *tty, struct termio *tp, int local);

Signed off by:  Robert P. J. Day <rpjday at mindspring.com>


More information about the busybox mailing list