summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/uniq/uniq.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/usr.bin/uniq/uniq.c b/usr.bin/uniq/uniq.c
index 890cc95..4317ede 100644
--- a/usr.bin/uniq/uniq.c
+++ b/usr.bin/uniq/uniq.c
@@ -83,11 +83,8 @@ main (argc, argv)
(void) setlocale(LC_ALL, "");
obsolete(argv);
- while ((ch = getopt(argc, argv, "-cdif:s:u")) != -1)
+ while ((ch = getopt(argc, argv, "cdif:s:u")) != -1)
switch (ch) {
- case '-':
- --optind;
- goto done;
case 'c':
cflag = 1;
break;
@@ -115,7 +112,7 @@ main (argc, argv)
usage();
}
-done: argc -= optind;
+ argc -= optind;
argv +=optind;
/* If no flags are set, default is -d -u. */
OpenPOWER on IntegriCloud