Module Name: src Committed By: kamil Date: Tue Sep 1 19:39:57 UTC 2015
Modified Files: src/lib/libc/stdlib: getopt_long.c Log Message: 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. To generate a diff of this commit: cvs rdiff -u -r1.26 -r1.27 src/lib/libc/stdlib/getopt_long.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/lib/libc/stdlib/getopt_long.c diff -u src/lib/libc/stdlib/getopt_long.c:1.26 src/lib/libc/stdlib/getopt_long.c:1.27 --- src/lib/libc/stdlib/getopt_long.c:1.26 Tue Sep 1 01:28:17 2015 +++ src/lib/libc/stdlib/getopt_long.c Tue Sep 1 19:39:57 2015 @@ -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;