summaryrefslogtreecommitdiffstats
path: root/sbin/geom
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/geom')
-rw-r--r--sbin/geom/class/multipath/geom_multipath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/geom/class/multipath/geom_multipath.c b/sbin/geom/class/multipath/geom_multipath.c
index ce0028d..2dc787d 100644
--- a/sbin/geom/class/multipath/geom_multipath.c
+++ b/sbin/geom/class/multipath/geom_multipath.c
@@ -240,7 +240,7 @@ mp_label(struct gctl_req *req)
continue;
}
if (pread(fd, rsector, secsize, disksize - secsize) !=
- secsize) {
+ (ssize_t)secsize) {
fprintf(stderr, "Unable to read metadata from %s: %s.\n",
name2, strerror(errno));
g_close(fd);
OpenPOWER on IntegriCloud