Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/fsck_msdos fix 32bit builds
details: https://anonhg.NetBSD.org/src/rev/b0ba1f69a8b5
branches: trunk
changeset: 369701:b0ba1f69a8b5
user: mlelstv <mlelstv%NetBSD.org@localhost>
date: Sun Aug 28 11:32:19 2022 +0000
description:
fix 32bit builds
diffstat:
sbin/fsck_msdos/boot.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff -r f26a2532c569 -r b0ba1f69a8b5 sbin/fsck_msdos/boot.c
--- a/sbin/fsck_msdos/boot.c Sun Aug 28 11:17:38 2022 +0000
+++ b/sbin/fsck_msdos/boot.c Sun Aug 28 11:32:19 2022 +0000
@@ -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 @@
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);
Home |
Main Index |
Thread Index |
Old Index