diff options
author | jlh <jlh@FreeBSD.org> | 2012-04-29 08:17:44 +0000 |
---|---|---|
committer | jlh <jlh@FreeBSD.org> | 2012-04-29 08:17:44 +0000 |
commit | cf28d816e5c390aab9ee55d8d92f45bbc6551307 (patch) | |
tree | 9c6f3ca6dd9b96aeba4490ccdfaae4ae3f5410dd | |
parent | c88e10dea88eb3ba5105a0fff20028a2b4766dd8 (diff) | |
download | FreeBSD-src-cf28d816e5c390aab9ee55d8d92f45bbc6551307.zip FreeBSD-src-cf28d816e5c390aab9ee55d8d92f45bbc6551307.tar.gz |
Use standard getopt(3) error message.
Submitted by: jilles
Approved by: kib (mentor)
-rw-r--r-- | usr.bin/stdbuf/stdbuf.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/usr.bin/stdbuf/stdbuf.c b/usr.bin/stdbuf/stdbuf.c index c6951bb..b2ade7e 100644 --- a/usr.bin/stdbuf/stdbuf.c +++ b/usr.bin/stdbuf/stdbuf.c @@ -52,7 +52,7 @@ main(int argc, char *argv[]) int i; ibuf = obuf = ebuf = NULL; - while ((i = getopt(argc, argv, ":e:i:o:")) != -1) { + while ((i = getopt(argc, argv, "e:i:o:")) != -1) { switch (i) { case 'e': ebuf = optarg; @@ -63,13 +63,8 @@ main(int argc, char *argv[]) case 'o': obuf = optarg; break; - case ':': - warnx("Missing argument for option -%c", optopt); - usage(1); - break; case '?': default: - warnx("Unknown option: %c", optopt); usage(1); break; } |