Module Name: src
Committed By: agc
Date: Sun Nov 20 01:14:17 UTC 2011
Modified Files:
src/sbin/iscsictl: iscsic_main.c
Log Message:
give the correct count of arguments to the sub-functions
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/sbin/iscsictl/iscsic_main.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/iscsictl/iscsic_main.c
diff -u src/sbin/iscsictl/iscsic_main.c:1.4 src/sbin/iscsictl/iscsic_main.c:1.5
--- src/sbin/iscsictl/iscsic_main.c:1.4 Thu Nov 17 16:20:47 2011
+++ src/sbin/iscsictl/iscsic_main.c Sun Nov 20 01:14:17 2011
@@ -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 @@ main(int argc, char **argv)
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);