From 26e9d97d8fa8c836b41a4dd3b5a5bf70a4e39db9 Mon Sep 17 00:00:00 2001 From: kamil Date: Tue, 1 Sep 2015 19:39:57 +0000 Subject: 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. --- lib/libc/stdlib/getopt_long.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'lib/libc/stdlib/getopt_long.c') 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 -__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; -- cgit