aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2019-04-05 02:37:10 +0000
committerXin LI <delphij@FreeBSD.org>2019-04-05 02:37:10 +0000
commitd325f3c243e07e7c59fba9301626be1781283697 (patch)
treec4285a3939c0e40b1cc83be0cd78141b29d51277 /sbin
parentd78b6f1ee8faa680b8ab7e6b37286028524bf840 (diff)
downloadsrc-d325f3c243e07e7c59fba9301626be1781283697.tar.gz
src-d325f3c243e07e7c59fba9301626be1781283697.zip
Fix build.
MFC after: 2 weeks X-MFC-With: r345900
Notes
Notes: svn path=/head/; revision=345901
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fsck_msdosfs/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/fsck_msdosfs/dir.c b/sbin/fsck_msdosfs/dir.c
index 06a58f8c7a04..a532dcaad0ca 100644
--- a/sbin/fsck_msdosfs/dir.c
+++ b/sbin/fsck_msdosfs/dir.c
@@ -488,7 +488,7 @@ check_subdirectory(int f, struct bootblock *boot, struct dosDirEntry *dir)
off *= boot->bpbBytesPerSec;
if (lseek(f, off, SEEK_SET) != off ||
- read(f, buf, boot->bpbBytesPerSec) != boot->bpbBytesPerSec) {
+ read(f, buf, boot->bpbBytesPerSec) != (ssize_t)boot->bpbBytesPerSec) {
perr("Unable to read directory");
free(buf);
return FSFATAL;