diff options
| author | mlelstv <mlelstv@NetBSD.org> | 2022-08-28 11:32:19 +0000 |
|---|---|---|
| committer | mlelstv <mlelstv@NetBSD.org> | 2022-08-28 11:32:19 +0000 |
| commit | 52f59b0be984c8124cfd82c8ceaed64e6ca655ef (patch) | |
| tree | 1aaa52f0bc51373edd2786943b2473544d722984 /sbin | |
| parent | e1c5c236741b423e3cc58862229b715add3f6706 (diff) | |
fix 32bit builds
Diffstat (limited to 'sbin')
| -rw-r--r-- | sbin/fsck_msdos/boot.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/fsck_msdos/boot.c b/sbin/fsck_msdos/boot.c index c6f0c7da9f9..70dd425f8ee 100644 --- a/sbin/fsck_msdos/boot.c +++ b/sbin/fsck_msdos/boot.c @@ -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 *boot) 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); |
