summaryrefslogtreecommitdiffstats
path: root/usr.bin/comm/comm.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/comm/comm.c')
-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 3c089c6..a063cfd 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)
OpenPOWER on IntegriCloud