Merge branch 'gcc-branch' into refs/top-bases/zfs-branch

This commit is contained in:
Brian Behlendorf 2008-12-08 11:28:14 -08:00
commit e60cd17a6a
1 changed files with 2 additions and 2 deletions

View File

@ -565,7 +565,7 @@ nvpair_value_match_regex(nvpair_t *nvp, int ai,
boolean_t val, val_arg; boolean_t val, val_arg;
/* scanf boolean_t from value and check for match */ /* scanf boolean_t from value and check for match */
sr = sscanf(value, "%"SCNi32, &val_arg); sr = sscanf(value, "%"SCNi32, (int32_t *)&val_arg);
if ((sr == 1) && if ((sr == 1) &&
(nvpair_value_boolean_value(nvp, &val) == 0) && (nvpair_value_boolean_value(nvp, &val) == 0) &&
(val == val_arg)) (val == val_arg))
@ -576,7 +576,7 @@ nvpair_value_match_regex(nvpair_t *nvp, int ai,
boolean_t *val_array, val_arg; boolean_t *val_array, val_arg;
/* check indexed value of array for match */ /* check indexed value of array for match */
sr = sscanf(value, "%"SCNi32, &val_arg); sr = sscanf(value, "%"SCNi32, (int32_t *)&val_arg);
if ((sr == 1) && if ((sr == 1) &&
(nvpair_value_boolean_array(nvp, (nvpair_value_boolean_array(nvp,
&val_array, &a_len) == 0) && &val_array, &a_len) == 0) &&