summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2015-11-13 10:32:34 +0000
committermav <mav@FreeBSD.org>2015-11-13 10:32:34 +0000
commiteb4386d8212a880c9fbd145d12d310b62d478675 (patch)
tree54ebd49394c27480bcc67d73ff1b7f77f8c8e3c0
parent81474285a02c7f2c7986e05ff7918f8d3edf8182 (diff)
downloadFreeBSD-src-eb4386d8212a880c9fbd145d12d310b62d478675.zip
FreeBSD-src-eb4386d8212a880c9fbd145d12d310b62d478675.tar.gz
Fix build on stable/10.
-rw-r--r--cddl/contrib/opensolaris/cmd/zfs/zfs_main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c b/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
index b48aa4d..e0fb953 100644
--- a/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
+++ b/cddl/contrib/opensolaris/cmd/zfs/zfs_main.c
@@ -3579,7 +3579,7 @@ zfs_do_set(int argc, char **argv)
{
nvlist_t *props = NULL;
int ds_start = -1; /* argv idx of first dataset arg */
- int ret = 0;
+ int i, ret = 0;
/* check for options */
if (argc > 1 && argv[1][0] == '-') {
@@ -3605,7 +3605,7 @@ zfs_do_set(int argc, char **argv)
}
/* validate argument order: prop=val args followed by dataset args */
- for (int i = 1; i < argc; i++) {
+ for (i = 1; i < argc; i++) {
if (strchr(argv[i], '=') != NULL) {
if (ds_start > 0) {
/* out-of-order prop=val argument */
@@ -3625,7 +3625,7 @@ zfs_do_set(int argc, char **argv)
/* Populate a list of property settings */
if (nvlist_alloc(&props, NV_UNIQUE_NAME, 0) != 0)
nomem();
- for (int i = 1; i < ds_start; i++) {
+ for (i = 1; i < ds_start; i++) {
if ((ret = parseprop(props, argv[i])) != 0)
goto error;
}
OpenPOWER on IntegriCloud