diff options
author | ngie <ngie@FreeBSD.org> | 2016-09-01 19:31:47 +0000 |
---|---|---|
committer | ngie <ngie@FreeBSD.org> | 2016-09-01 19:31:47 +0000 |
commit | a79616dbee6ff950597905ba262f9d753ad202d3 (patch) | |
tree | 3b992b9ebe9940a21cb26dcd2465f3785c686f70 /cddl | |
parent | 2bcbc04a48e23b407a4b51ee022ca22c15e29416 (diff) | |
download | FreeBSD-src-a79616dbee6ff950597905ba262f9d753ad202d3.zip FreeBSD-src-a79616dbee6ff950597905ba262f9d753ad202d3.tar.gz |
MFstable/11 r305225:
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')
-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 : "", |