Module Name: src
Committed By: mlelstv
Date: Sun Aug 28 11:32:19 UTC 2022
Modified Files:
src/sbin/fsck_msdos: boot.c
Log Message:
fix 32bit builds
To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/sbin/fsck_msdos/boot.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sbin/fsck_msdos/boot.c
diff -u src/sbin/fsck_msdos/boot.c:1.26 src/sbin/fsck_msdos/boot.c:1.27
--- src/sbin/fsck_msdos/boot.c:1.26 Sun Aug 28 10:20:25 2022
+++ src/sbin/fsck_msdos/boot.c Sun Aug 28 11:32:19 2022
@@ -27,7 +27,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: boot.c,v 1.26 2022/08/28 10:20:25 mlelstv Exp $");
+__RCSID("$NetBSD: boot.c,v 1.27 2022/08/28 11:32:19 mlelstv Exp $");
#endif /* not lint */
#include <stdlib.h>
@@ -159,7 +159,7 @@ readboot(int dosfs, struct bootblock *bo
fsinfo[0x3ff] = 0xaa;
if (lseek(dosfs, boot->FSInfo * boot->BytesPerSec, SEEK_SET)
!= boot->FSInfo * boot->BytesPerSec
- || write(dosfs, fsinfo, 2 * secsize)
+ || (size_t)write(dosfs, fsinfo, 2 * secsize)
!= 2 * secsize) {
perr("Unable to write FSInfo");
free(fsinfo);