diff options
author | ngie <ngie@FreeBSD.org> | 2016-09-01 18:56:42 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-09-01 18:56:42 +0000 |
commit | 8c21c73a2f1a39996af2e32d4c59f1fc3c6143f0 (patch) | |
tree | 81eacdaec4a1e8cc5041eeb89ac0ab5099532630 /cddl/contrib/opensolaris/lib/libzpool/common | |
parent | e77f0210a34587f8cd20b59d408d28bc59e3e81d (diff) | |
download | FreeBSD-src-8c21c73a2f1a39996af2e32d4c59f1fc3c6143f0.zip FreeBSD-src-8c21c73a2f1a39996af2e32d4c59f1fc3c6143f0.tar.gz |
MFC r303573:
Cast result from third parameter to int instead of promoting it to size_t
This resolves a -Wformat issue when the value is used as a format width
precision specifier, i.e. %*s
Diffstat (limited to 'cddl/contrib/opensolaris/lib/libzpool/common')
-rw-r--r-- | cddl/contrib/opensolaris/lib/libzpool/common/util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cddl/contrib/opensolaris/lib/libzpool/common/util.c b/cddl/contrib/opensolaris/lib/libzpool/common/util.c index 9b99531..6257e2b 100644 --- a/cddl/contrib/opensolaris/lib/libzpool/common/util.c +++ b/cddl/contrib/opensolaris/lib/libzpool/common/util.c @@ -108,7 +108,7 @@ show_vdev_stats(const char *desc, const char *ctype, nvlist_t *nv, int indent) (void) printf("%*s%s%*s%*s%*s %5s %5s %5s %5s %5s %5s %5s\n", indent, "", prefix, - indent + strlen(prefix) - 25 - (vs->vs_space ? 0 : 12), + (int)(indent + strlen(prefix) - 25 - (vs->vs_space ? 0 : 12)), desc, vs->vs_space ? 6 : 0, vs->vs_space ? used : "", vs->vs_space ? 6 : 0, vs->vs_space ? avail : "", |