]> granicus.if.org Git - zfs/commitdiff
Resolve 2 more shadow conflicts
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 16 Dec 2008 21:28:23 +0000 (13:28 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 16 Dec 2008 21:28:23 +0000 (13:28 -0800)
lib/libzfs/libzfs_dataset.c

index 1f740057a7fd28ce5c07170f42fbb11fa2b75f9d..b66b24ebc1d31335fb6bda31f6b292fc61abd0ae 100644 (file)
@@ -530,13 +530,12 @@ zfs_close(zfs_handle_t *zhp)
 int
 zfs_spa_version(zfs_handle_t *zhp, int *version)
 {
-       zpool_handle_t *zpool_handle = zhp->zpool_hdl;
+       zpool_handle_t *handle = zhp->zpool_hdl;
 
-       if (zpool_handle == NULL)
+       if (handle == NULL)
                return (-1);
 
-       *version = zpool_get_prop_int(zpool_handle,
-           ZPOOL_PROP_VERSION, NULL);
+       *version = zpool_get_prop_int(handle, ZPOOL_PROP_VERSION, NULL);
        return (0);
 }
 
@@ -2310,11 +2309,11 @@ zfs_prop_get(zfs_handle_t *zhp, zfs_prop_t prop, char *propbuf, size_t proplen,
                 */
                {
                        val = getprop_uint64(zhp, prop, &source);
-                       time_t time = (time_t)val;
+                       time_t local_time = (time_t)val;
                        struct tm t;
 
                        if (literal ||
-                           localtime_r(&time, &t) == NULL ||
+                           localtime_r(&local_time, &t) == NULL ||
                            strftime(propbuf, proplen, "%a %b %e %k:%M %Y",
                            &t) == 0)
                                (void) snprintf(propbuf, proplen, "%llu", val);