diff options
author | 2001-12-05 09:59:16 +0000 | |
---|---|---|
committer | 2001-12-05 09:59:16 +0000 | |
commit | 432eff4a448714ad7979f6155fe585b0a8d10f1c (patch) | |
tree | 1a651c40eb2321b973738be5c9dad4cd60a4f1c1 | |
parent | remove lies (diff) | |
download | wireguard-openbsd-432eff4a448714ad7979f6155fe585b0a8d10f1c.tar.xz wireguard-openbsd-432eff4a448714ad7979f6155fe585b0a8d10f1c.zip |
at least make this more real
-rw-r--r-- | share/misc/getopt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/share/misc/getopt b/share/misc/getopt index 423967811f6..08b7ddc2733 100644 --- a/share/misc/getopt +++ b/share/misc/getopt @@ -1,4 +1,4 @@ -/* $OpenBSD: getopt,v 1.4 2001/07/15 20:54:20 pvalchev Exp $ */ +/* $OpenBSD: getopt,v 1.5 2001/12/05 09:59:16 deraadt Exp $ */ /* * Main/getopt(3) fragment. * @@ -6,7 +6,6 @@ */ #include <sys/types.h> - #include <stdlib.h> void usage __P((void)); @@ -18,7 +17,7 @@ main(argc, argv) { int ch; - while ((ch = getopt(argc, argv, "")) != -1) + while ((ch = getopt(argc, argv, "abcf:")) != -1) switch (ch) { case '': break; @@ -31,9 +30,10 @@ main(argc, argv) } void -usage() +usage(void) { extern char *__progname; + (void)fprintf(stderr, "usage: %s [-abc] [-f file]\n", __progname); exit(1); } |