Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/stdlib ANSIfy getopt(3) - this is the REPLACE_GETOP...



details:   https://anonhg.NetBSD.org/src/rev/9ec04d7ca34b
branches:  trunk
changeset: 810510:9ec04d7ca34b
user:      kamil <kamil%NetBSD.org@localhost>
date:      Tue Sep 01 19:39:57 2015 +0000

description:
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:

 lib/libc/stdlib/getopt_long.c |  9 +++------
 1 files changed, 3 insertions(+), 6 deletions(-)

diffs (30 lines):

diff -r e78fb5fe855d -r 9ec04d7ca34b lib/libc/stdlib/getopt_long.c
--- a/lib/libc/stdlib/getopt_long.c     Tue Sep 01 19:25:32 2015 +0000
+++ b/lib/libc/stdlib/getopt_long.c     Tue Sep 01 19:39:57 2015 +0000
@@ -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 @@
  * [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;
 



Home | Main Index | Thread Index | Old Index