Resolve missing cast warning

This commit is contained in:
Brian Behlendorf 2009-07-07 13:41:51 -07:00
parent b095bf444a
commit a2423197e1
1 changed files with 2 additions and 1 deletions

View File

@ -2217,7 +2217,8 @@ zfs_prop_get_userquota(zfs_handle_t *zhp, const char *propname,
return (err);
if (literal) {
(void) snprintf(propbuf, proplen, "%llu", propvalue);
(void) snprintf(propbuf, proplen, "%llu",
(u_longlong_t)propvalue);
} else if (propvalue == 0 &&
(type == ZFS_PROP_USERQUOTA || type == ZFS_PROP_GROUPQUOTA)) {
(void) strlcpy(propbuf, "none", proplen);