]> granicus.if.org Git - zfs/commitdiff
Explictly use signed char for portability. On x86/x86_64
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 May 2009 23:30:47 +0000 (16:30 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 22 May 2009 23:30:47 +0000 (16:30 -0700)
systems the default char type is signed, on ppc/ppc64 systems
the default char type is unsigned.

cmd/zfs/zfs_main.c

index b412b5752033daadf26599e51deb8a77ea684221..c73fb93219a2e17f0c2b99dc08c3049e97adfb1e 100644 (file)
@@ -1495,7 +1495,7 @@ zfs_do_upgrade(int argc, char **argv)
        boolean_t showversions = B_FALSE;
        int ret;
        upgrade_cbdata_t cb = { 0 };
-       char c;
+       signed char c;
        int flags = ZFS_ITER_ARGS_CAN_BE_PATHS;
 
        /* check options */
@@ -2251,7 +2251,7 @@ zfs_do_snapshot(int argc, char **argv)
 {
        boolean_t recursive = B_FALSE;
        int ret;
-       char c;
+       signed char c;
        nvlist_t *props;
 
        if (nvlist_alloc(&props, NV_UNIQUE_NAME, 0) != 0) {