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.
This commit is contained in:
Brian Behlendorf 2009-05-22 16:30:47 -07:00
parent f07954ef8a
commit 8e9605062a
1 changed files with 2 additions and 2 deletions

View File

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