diff options
author | marcel <marcel@FreeBSD.org> | 2014-03-29 03:46:36 +0000 |
---|---|---|
committer | marcel <marcel@FreeBSD.org> | 2014-03-29 03:46:36 +0000 |
commit | 4aafbd0ea159fb94e869d65ba27afc9ca3344005 (patch) | |
tree | c343aeed3f262b3b54778a63ae09b96e00a1d7b3 | |
parent | fae0837f6df20fb32dffaf0bd942c38f58932885 (diff) | |
download | FreeBSD-src-4aafbd0ea159fb94e869d65ba27afc9ca3344005.zip FreeBSD-src-4aafbd0ea159fb94e869d65ba27afc9ca3344005.tar.gz |
Fix build on i386 w/ clang.
-rw-r--r-- | ebr.c | 2 | ||||
-rw-r--r-- | mbr.c | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -102,7 +102,7 @@ ebr_write(int fd, lba_t imgsz __unused, void *bootcode __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) @@ -94,7 +94,7 @@ mbr_write(int fd, lba_t imgsz __unused, void *bootcode) } 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); |