From: Brian Behlendorf Date: Fri, 22 May 2009 23:30:47 +0000 (-0700) Subject: Explictly use signed char for portability. On x86/x86_64 X-Git-Tag: zfs-0.4.4~12^2~6^2^2^2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e9605062a335e152d0056005f3a093223c98cbc;p=zfs Explictly use signed char for portability. On x86/x86_64 systems the default char type is signed, on ppc/ppc64 systems the default char type is unsigned. --- diff --git a/cmd/zfs/zfs_main.c b/cmd/zfs/zfs_main.c index b412b5752..c73fb9321 100644 --- a/cmd/zfs/zfs_main.c +++ b/cmd/zfs/zfs_main.c @@ -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) {