diff options
author | Jeremie Le Hen <jlh@FreeBSD.org> | 2012-04-29 08:17:44 +0000 |
---|---|---|
committer | Jeremie Le Hen <jlh@FreeBSD.org> | 2012-04-29 08:17:44 +0000 |
commit | 3c2ded8bbc7726ecf72cf5d41d0b2aa39fd1da14 (patch) | |
tree | 9c6f3ca6dd9b96aeba4490ccdfaae4ae3f5410dd /usr.bin/stdbuf | |
parent | ab07718555b55ce5a143b9d83f8a59e486912156 (diff) | |
download | src-test2-3c2ded8bbc7726ecf72cf5d41d0b2aa39fd1da14.tar.gz src-test2-3c2ded8bbc7726ecf72cf5d41d0b2aa39fd1da14.zip |
Notes
Diffstat (limited to 'usr.bin/stdbuf')
-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 c6951bba72b9..b2ade7e5b9e3 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; } |