Author: ngie
Date: Thu Sep  1 18:56:42 2016
New Revision: 305225
URL: https://svnweb.freebsd.org/changeset/base/305225

Log:
  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

Modified:
  stable/11/cddl/contrib/opensolaris/lib/libzpool/common/util.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/cddl/contrib/opensolaris/lib/libzpool/common/util.c
==============================================================================
--- stable/11/cddl/contrib/opensolaris/lib/libzpool/common/util.c       Thu Sep 
 1 18:37:11 2016        (r305224)
+++ stable/11/cddl/contrib/opensolaris/lib/libzpool/common/util.c       Thu Sep 
 1 18:56:42 2016        (r305225)
@@ -108,7 +108,7 @@ show_vdev_stats(const char *desc, const 
                (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 : "",
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to