Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/iscsictl give the correct count of arguments to the sub...
details: https://anonhg.NetBSD.org/src/rev/47469dd202b5
branches: trunk
changeset: 771419:47469dd202b5
user: agc <agc%NetBSD.org@localhost>
date: Sun Nov 20 01:14:17 2011 +0000
description:
give the correct count of arguments to the sub-functions
diffstat:
sbin/iscsictl/iscsic_main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 13444f1ba6fc -r 47469dd202b5 sbin/iscsictl/iscsic_main.c
--- a/sbin/iscsictl/iscsic_main.c Sun Nov 20 01:09:14 2011 +0000
+++ b/sbin/iscsictl/iscsic_main.c Sun Nov 20 01:14:17 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: iscsic_main.c,v 1.4 2011/11/17 16:20:47 joerg Exp $ */
+/* $NetBSD: iscsic_main.c,v 1.5 2011/11/20 01:14:17 agc Exp $ */
/*-
* Copyright (c) 2005,2006,2011 The NetBSD Foundation, Inc.
@@ -596,7 +596,7 @@
sizeof(daemon_name.sun_path));
/* dispatch command */
- res = (*c->proc)(optind + 1, &argv[optind + 1]);
+ res = (*c->proc)(argc - optind - 1, &argv[optind + 1]);
/* cleanup */
close(sock);
Home |
Main Index |
Thread Index |
Old Index