summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/getopt_long.c
diff options
context:
space:
mode:
authorpat <>2005-03-30 18:51:49 +0000
committerpat <>2005-03-30 18:51:49 +0000
commit894b6ab0099e7d9ca2ad9acb75246cd0a4542167 (patch)
treef9fb8e9324f6cbdc10d72cab8b889d470252465a /src/lib/libc/stdlib/getopt_long.c
parent162f8b042bf31ab94714a6f194e9836c08c085f5 (diff)
downloadopenbsd-894b6ab0099e7d9ca2ad9acb75246cd0a4542167.tar.gz
openbsd-894b6ab0099e7d9ca2ad9acb75246cd0a4542167.tar.bz2
openbsd-894b6ab0099e7d9ca2ad9acb75246cd0a4542167.zip
ansi + de-register
ok otto deraadt
Diffstat (limited to 'src/lib/libc/stdlib/getopt_long.c')
-rw-r--r--src/lib/libc/stdlib/getopt_long.c20
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)
60static char *rcsid = "$OpenBSD: getopt_long.c,v 1.17 2004/06/03 18:46:52 millert Exp $"; 60static 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 */
517int 517int
518getopt_long(nargc, nargv, options, long_options, idx) 518getopt_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 */
534int 530int
535getopt_long_only(nargc, nargv, options, long_options, idx) 531getopt_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,