summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authorkamil <kamil@NetBSD.org>2015-09-01 19:39:57 +0000
committerkamil <kamil@NetBSD.org>2015-09-01 19:39:57 +0000
commit26e9d97d8fa8c836b41a4dd3b5a5bf70a4e39db9 (patch)
treebb3a22a837a37aeb2ad02333916f8de1127e5609 /lib/libc/stdlib
parentcd8968e87322b2e8da756219b45dc772574559a8 (diff)
ANSIfy getopt(3) - this is the REPLACE_GETOPT version from getopt_long(3)
For the reference, this version still passes the current set of ATF tests for the getopt(3) function. This version is by default unused.
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/getopt_long.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/libc/stdlib/getopt_long.c b/lib/libc/stdlib/getopt_long.c
index 9e5ff53e9c6..532046425c9 100644
--- a/lib/libc/stdlib/getopt_long.c
+++ b/lib/libc/stdlib/getopt_long.c
@@ -1,4 +1,4 @@
-/* $NetBSD: getopt_long.c,v 1.26 2015/09/01 01:28:17 kamil Exp $ */
+/* $NetBSD: getopt_long.c,v 1.27 2015/09/01 19:39:57 kamil Exp $ */
/*-
* Copyright (c) 2000 The NetBSD Foundation, Inc.
@@ -34,7 +34,7 @@
#endif
#include <sys/cdefs.h>
-__RCSID("$NetBSD: getopt_long.c,v 1.26 2015/09/01 01:28:17 kamil Exp $");
+__RCSID("$NetBSD: getopt_long.c,v 1.27 2015/09/01 19:39:57 kamil Exp $");
#include "namespace.h"
@@ -307,10 +307,7 @@ start:
* [eventually this will replace the real getopt]
*/
int
-getopt(nargc, nargv, options)
- int nargc;
- char * const *nargv;
- const char *options;
+getopt(int nargc, char * const *nargv, const char *options)
{
int retval;