summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim J. Robbins <tjr@FreeBSD.org>2002-05-28 09:26:08 +0000
committerTim J. Robbins <tjr@FreeBSD.org>2002-05-28 09:26:08 +0000
commitfc7f17b1fe842843b3d6c455099dfade977bdb7f (patch)
treea68eb8a6cfcca1b69c39d6405181b08a090e75e7
parentbcd46c600ae12a4b6d1b1023e796e70b82de0ad2 (diff)
Notes
-rw-r--r--usr.bin/comm/comm.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/comm/comm.c b/usr.bin/comm/comm.c
index 3c089c636a15..a063cfdf7205 100644
--- a/usr.bin/comm/comm.c
+++ b/usr.bin/comm/comm.c
@@ -84,11 +84,8 @@ main(argc, argv)
(void) setlocale(LC_ALL, "");
- while ((ch = getopt(argc, argv, "-123i")) != -1)
+ while ((ch = getopt(argc, argv, "123i")) != -1)
switch(ch) {
- case '-':
- --optind;
- goto done;
case '1':
flag1 = 0;
break;
@@ -105,7 +102,7 @@ main(argc, argv)
default:
usage();
}
-done: argc -= optind;
+ argc -= optind;
argv += optind;
if (argc != 2)