svn commit: r227471 - head/sbin/geom/class/multipath

Dimitry Andric dim at FreeBSD.org
Sat Nov 12 19:45:56 UTC 2011


Author: dim
Date: Sat Nov 12 19:45:56 2011
New Revision: 227471
URL: http://svn.freebsd.org/changeset/base/227471

Log:
  Fix buildworld breakage due after r227464.
  
  Pointy hat to:	mav

Modified:
  head/sbin/geom/class/multipath/geom_multipath.c

Modified: head/sbin/geom/class/multipath/geom_multipath.c
==============================================================================
--- head/sbin/geom/class/multipath/geom_multipath.c	Sat Nov 12 19:02:55 2011	(r227470)
+++ head/sbin/geom/class/multipath/geom_multipath.c	Sat Nov 12 19:45:56 2011	(r227471)
@@ -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);


More information about the svn-src-head mailing list