Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/usr.sbin/wiconfig Pull up revision 1.5 (requested by so...
details: https://anonhg.NetBSD.org/src/rev/42ab9adc7d07
branches: netbsd-1-4
changeset: 470688:42ab9adc7d07
user: he <he%NetBSD.org@localhost>
date: Tue Jun 27 15:35:21 2000 +0000
description:
Pull up revision 1.5 (requested by sommerfeld):
Clean up argument parsing.
diffstat:
usr.sbin/wiconfig/wiconfig.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (31 lines):
diff -r 15478151e108 -r 42ab9adc7d07 usr.sbin/wiconfig/wiconfig.c
--- a/usr.sbin/wiconfig/wiconfig.c Tue Jun 27 15:30:46 2000 +0000
+++ b/usr.sbin/wiconfig/wiconfig.c Tue Jun 27 15:35:21 2000 +0000
@@ -29,7 +29,7 @@
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
* THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: wiconfig.c,v 1.4.2.3 2000/06/27 15:02:23 he Exp $
+ * $Id: wiconfig.c,v 1.4.2.4 2000/06/27 15:35:21 he Exp $
*/
#include <sys/types.h>
@@ -67,7 +67,7 @@
static const char copyright[] = "@(#) Copyright (c) 1997, 1998, 1999\
Bill Paul. All rights reserved.";
static const char rcsid[] =
- "@(#) $Id: wiconfig.c,v 1.4.2.3 2000/06/27 15:02:23 he Exp $";
+ "@(#) $Id: wiconfig.c,v 1.4.2.4 2000/06/27 15:35:21 he Exp $";
#endif
static void wi_getval __P((char *, struct wi_req *));
@@ -638,8 +638,7 @@
if (argc > 1 && argv[1][0] != '-') {
iface = argv[1];
- memcpy(&argv[1], &argv[2], argc * sizeof(char *));
- argc--;
+ optind++;
}
while ((ch = getopt(argc, argv,
Home |
Main Index |
Thread Index |
Old Index