From b45e416a120c2b5f14c6ad302b860a22d7eeb778 Mon Sep 17 00:00:00 2001 From: Juli Mallett Date: Wed, 29 May 2002 17:12:30 +0000 Subject: [PATCH] A space between switch and open-paren. Don't explicitly cast the value returned by getopt(3) to 'char' in a switch. --- usr.bin/tty/tty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/tty/tty.c b/usr.bin/tty/tty.c index bcb34ff42abf..4710e169c1bf 100644 --- a/usr.bin/tty/tty.c +++ b/usr.bin/tty/tty.c @@ -60,7 +60,7 @@ main(int argc, char *argv[]) sflag = 0; while ((ch = getopt(argc, argv, "s")) != -1) - switch((char)ch) { + switch (ch) { case 's': sflag = 1; break;