From 33b90eebfd793159ba28ff57f58bba394a70d5b2 Mon Sep 17 00:00:00 2001 From: lukem Date: Sat, 3 Nov 2001 12:49:31 +0000 Subject: [PATCH] fix WARNS=2 --- bin/pax/getoldopt.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/pax/getoldopt.c b/bin/pax/getoldopt.c index edc3f24456a7..666ba114ac76 100644 --- a/bin/pax/getoldopt.c +++ b/bin/pax/getoldopt.c @@ -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 #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 @@ -24,7 +24,7 @@ __RCSID("$NetBSD: getoldopt.c,v 1.11 2001/10/25 05:33:33 lukem Exp $"); 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 @@ getoldopt(int argc, char **argv, const char *optstring, 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++;