Date: Sat, 29 Mar 2014 03:46:36 +0000 (UTC) From: Marcel Moolenaar <marcel@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r263896 - user/marcel/mkimg Message-ID: <201403290346.s2T3kabw046749@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: marcel Date: Sat Mar 29 03:46:36 2014 New Revision: 263896 URL: http://svnweb.freebsd.org/changeset/base/263896 Log: Fix build on i386 w/ clang. Modified: user/marcel/mkimg/ebr.c user/marcel/mkimg/mbr.c Modified: user/marcel/mkimg/ebr.c ============================================================================== --- user/marcel/mkimg/ebr.c Sat Mar 29 03:39:22 2014 (r263895) +++ user/marcel/mkimg/ebr.c Sat Mar 29 03:46:36 2014 (r263896) @@ -102,7 +102,7 @@ ebr_write(int fd, lba_t imgsz __unused, error = mkimg_seek(fd, block); if (error == 0) { - if (write(fd, ebr, secsz) != secsz) + if (write(fd, ebr, secsz) != (ssize_t)secsz) error = errno; } if (error) Modified: user/marcel/mkimg/mbr.c ============================================================================== --- user/marcel/mkimg/mbr.c Sat Mar 29 03:39:22 2014 (r263895) +++ user/marcel/mkimg/mbr.c Sat Mar 29 03:46:36 2014 (r263896) @@ -94,7 +94,7 @@ mbr_write(int fd, lba_t imgsz __unused, } error = mkimg_seek(fd, 0); if (error == 0) { - if (write(fd, mbr, secsz) != secsz) + if (write(fd, mbr, secsz) != (ssize_t)secsz) error = errno; } free(mbr);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403290346.s2T3kabw046749>