From d325f3c243e07e7c59fba9301626be1781283697 Mon Sep 17 00:00:00 2001 From: Xin LI Date: Fri, 5 Apr 2019 02:37:10 +0000 Subject: [PATCH] Fix build. MFC after: 2 weeks X-MFC-With: r345900 --- sbin/fsck_msdosfs/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;