diff options
Diffstat (limited to 'src/lib/libc/stdlib/getopt_long.c')
| -rw-r--r-- | src/lib/libc/stdlib/getopt_long.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/src/lib/libc/stdlib/getopt_long.c b/src/lib/libc/stdlib/getopt_long.c index bf50195b94..6ddc8e2060 100644 --- a/src/lib/libc/stdlib/getopt_long.c +++ b/src/lib/libc/stdlib/getopt_long.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: getopt_long.c,v 1.17 2004/06/03 18:46:52 millert Exp $ */ | 1 | /* $OpenBSD: getopt_long.c,v 1.18 2005/03/30 18:51:49 pat Exp $ */ |
| 2 | /* $NetBSD: getopt_long.c,v 1.15 2002/01/31 22:43:40 tv Exp $ */ | 2 | /* $NetBSD: getopt_long.c,v 1.15 2002/01/31 22:43:40 tv Exp $ */ |
| 3 | 3 | ||
| 4 | /* | 4 | /* |
| @@ -57,7 +57,7 @@ | |||
| 57 | */ | 57 | */ |
| 58 | 58 | ||
| 59 | #if defined(LIBC_SCCS) && !defined(lint) | 59 | #if defined(LIBC_SCCS) && !defined(lint) |
| 60 | static char *rcsid = "$OpenBSD: getopt_long.c,v 1.17 2004/06/03 18:46:52 millert Exp $"; | 60 | static char *rcsid = "$OpenBSD: getopt_long.c,v 1.18 2005/03/30 18:51:49 pat Exp $"; |
| 61 | #endif /* LIBC_SCCS and not lint */ | 61 | #endif /* LIBC_SCCS and not lint */ |
| 62 | 62 | ||
| 63 | #include <err.h> | 63 | #include <err.h> |
| @@ -515,12 +515,8 @@ getopt(int nargc, char * const *nargv, const char *options) | |||
| 515 | * Parse argc/argv argument vector. | 515 | * Parse argc/argv argument vector. |
| 516 | */ | 516 | */ |
| 517 | int | 517 | int |
| 518 | getopt_long(nargc, nargv, options, long_options, idx) | 518 | getopt_long(int nargc, char * const *nargv, const char *options, |
| 519 | int nargc; | 519 | const struct option *long_options, int *idx) |
| 520 | char * const *nargv; | ||
| 521 | const char *options; | ||
| 522 | const struct option *long_options; | ||
| 523 | int *idx; | ||
| 524 | { | 520 | { |
| 525 | 521 | ||
| 526 | return (getopt_internal(nargc, nargv, options, long_options, idx, | 522 | return (getopt_internal(nargc, nargv, options, long_options, idx, |
| @@ -532,12 +528,8 @@ getopt_long(nargc, nargv, options, long_options, idx) | |||
| 532 | * Parse argc/argv argument vector. | 528 | * Parse argc/argv argument vector. |
| 533 | */ | 529 | */ |
| 534 | int | 530 | int |
| 535 | getopt_long_only(nargc, nargv, options, long_options, idx) | 531 | getopt_long_only(int nargc, char * const *nargv, const char *options, |
| 536 | int nargc; | 532 | const struct option *long_options, int *idx) |
| 537 | char * const *nargv; | ||
| 538 | const char *options; | ||
| 539 | const struct option *long_options; | ||
| 540 | int *idx; | ||
| 541 | { | 533 | { |
| 542 | 534 | ||
| 543 | return (getopt_internal(nargc, nargv, options, long_options, idx, | 535 | return (getopt_internal(nargc, nargv, options, long_options, idx, |
