Source-Changes-HG archive

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

[src/trunk]: src/bin/pax fix WARNS=2



details:   https://anonhg.NetBSD.org/src/rev/29eb18709966
branches:  trunk
changeset: 516960:29eb18709966
user:      lukem <lukem%NetBSD.org@localhost>
date:      Sat Nov 03 12:49:31 2001 +0000

description:
fix WARNS=2

diffstat:

 bin/pax/getoldopt.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (36 lines):

diff -r fa527c6aa3fd -r 29eb18709966 bin/pax/getoldopt.c
--- a/bin/pax/getoldopt.c       Sat Nov 03 12:02:28 2001 +0000
+++ b/bin/pax/getoldopt.c       Sat Nov 03 12:49:31 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: getoldopt.c,v 1.11 2001/10/25 05:33:33 lukem Exp $     */
+/*     $NetBSD: getoldopt.c,v 1.12 2001/11/03 12:49:31 lukem Exp $     */
 
 /*
  * Plug-compatible replacement for getopt() for parsing tar-like
@@ -11,7 +11,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: getoldopt.c,v 1.11 2001/10/25 05:33:33 lukem Exp $");
+__RCSID("$NetBSD: getoldopt.c,v 1.12 2001/11/03 12:49:31 lukem Exp $");
 #endif /* not lint */
 
 #include <stdio.h>
@@ -24,7 +24,7 @@
 
 int
 getoldopt(int argc, char **argv, const char *optstring,
-       struct option *longopts, int *index)
+       struct option *longopts, int *idx)
 {
        static char     *key;           /* Points to next keyletter */
        static char     use_getopt;     /* !=0 if argv[1][0] was '-' */
@@ -44,7 +44,7 @@
 
        if (use_getopt)
                return ((longopts != NULL) ?
-                       getopt_long(argc, argv, optstring, longopts, index) :
+                       getopt_long(argc, argv, optstring, longopts, idx) :
                        getopt(argc, argv, optstring));
 
        c = *key++;



Home | Main Index | Thread Index | Old Index