stty dumps core if you try to set the ispeed (ex: stty ispeed 0)
authorKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 17 Apr 1993 22:50:06 +0000 (14:50 -0800)
committerKeith Bostic <bostic@ucbvax.Berkeley.EDU>
Sat, 17 Apr 1993 22:50:06 +0000 (14:50 -0800)
From: John T Kohl <jtkohl@kolvir.blrc.ma.us>

SCCS-vsn: bin/stty/key.c 5.4

usr/src/bin/stty/key.c

index 787eed3..7b6f195 100644 (file)
@@ -6,7 +6,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)key.c      5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)key.c      5.4 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/types.h>
 #endif /* not lint */
 
 #include <sys/types.h>
@@ -50,7 +50,7 @@ static struct key {
        "dec",          f_dec,          0,
        "everything",   f_everything,   0,
        "extproc",      f_extproc,      F_OFFOK,
        "dec",          f_dec,          0,
        "everything",   f_everything,   0,
        "extproc",      f_extproc,      F_OFFOK,
-       "ispeed",       f_ispeed,       0,
+       "ispeed",       f_ispeed,       F_NEEDARG,
        "new",          f_tty,          0,
        "nl",           f_nl,           F_OFFOK,
        "old",          f_tty,          0,
        "new",          f_tty,          0,
        "nl",           f_nl,           F_OFFOK,
        "old",          f_tty,          0,