summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authormav <mav@FreeBSD.org>2011-11-12 20:01:30 +0000
committermav <mav@FreeBSD.org>2011-11-12 20:01:30 +0000
commitcef1efa0562bdab1761df9ccb2b05f3854d95aa9 (patch)
tree79d0bcba59e02d5847963ebb1a2e960c1e206aeb /sbin
parentcc75dec446313f522fc9482a85f2c0e9f1f6111f (diff)
downloadFreeBSD-src-cef1efa0562bdab1761df9ccb2b05f3854d95aa9.zip
FreeBSD-src-cef1efa0562bdab1761df9ccb2b05f3854d95aa9.tar.gz
Fix build on some archs after r227464.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/geom/class/multipath/geom_multipath.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sbin/geom/class/multipath/geom_multipath.c b/sbin/geom/class/multipath/geom_multipath.c
index 2dc787d..ecbaa37 100644
--- a/sbin/geom/class/multipath/geom_multipath.c
+++ b/sbin/geom/class/multipath/geom_multipath.c
@@ -133,7 +133,8 @@ mp_label(struct gctl_req *req)
uint8_t *sector, *rsector;
char *ptr;
uuid_t uuid;
- uint32_t secsize = 0, ssize, status;
+ ssize_t secsize = 0, ssize;
+ uint32_t status;
const char *name, *name2, *mpname;
int error, i, nargs, fd;
@@ -161,8 +162,8 @@ mp_label(struct gctl_req *req)
disksize = msize;
} else {
if (secsize != ssize) {
- gctl_error(req, "%s sector size %u different.",
- name, ssize);
+ gctl_error(req, "%s sector size %ju different.",
+ name, (intmax_t)ssize);
return;
}
if (disksize != msize) {
OpenPOWER on IntegriCloud