From: Brian Behlendorf Date: Mon, 8 Dec 2008 18:32:55 +0000 (-0800) Subject: Add missing cast X-Git-Tag: zfs-0.4.4~12^2~252^2^2^2^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c6de8b41c14b935cb3620e5d5096d005c3afb94;p=zfs Add missing cast --- diff --git a/zfs/lib/libnvpair/libnvpair.c b/zfs/lib/libnvpair/libnvpair.c index 1f989c4bd..fcbf4dd84 100644 --- a/zfs/lib/libnvpair/libnvpair.c +++ b/zfs/lib/libnvpair/libnvpair.c @@ -565,7 +565,7 @@ nvpair_value_match_regex(nvpair_t *nvp, int ai, boolean_t val, val_arg; /* 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) && (nvpair_value_boolean_value(nvp, &val) == 0) && (val == val_arg)) @@ -576,7 +576,7 @@ nvpair_value_match_regex(nvpair_t *nvp, int ai, boolean_t *val_array, val_arg; /* check indexed value of array for match */ - sr = sscanf(value, "%"SCNi32, &val_arg); + sr = sscanf(value, "%"SCNi32, (int32_t *)&val_arg); if ((sr == 1) && (nvpair_value_boolean_array(nvp, &val_array, &a_len) == 0) &&