summaryrefslogtreecommitdiff
path: root/sys/arch
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2008-01-30 02:13:05 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2008-01-30 02:13:05 +0000
commitc318869dea30eb6bad6cede5d2d5e35bcd375767 (patch)
tree33f44a893a1c4415b1a331fa72ff1e447264b917 /sys/arch
parent210f7ed5666922b19576d0189f7e7d8cf2455aac (diff)
Oops. Missed one.
More read/write result checking fixes to avoid unsigned comparisons vs -1.
Diffstat (limited to 'sys/arch')
-rw-r--r--sys/arch/mvme68k/stand/installboot/installboot.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/mvme68k/stand/installboot/installboot.c b/sys/arch/mvme68k/stand/installboot/installboot.c
index d62ea70b554..42784e46178 100644
--- a/sys/arch/mvme68k/stand/installboot/installboot.c
+++ b/sys/arch/mvme68k/stand/installboot/installboot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: installboot.c,v 1.11 2007/06/17 00:28:56 deraadt Exp $ */
+/* $OpenBSD: installboot.c,v 1.12 2008/01/30 02:13:04 krw Exp $ */
/* $NetBSD: installboot.c,v 1.5 1995/11/17 23:23:50 gwr Exp $ */
/*
@@ -406,7 +406,7 @@ vid_to_disklabel(char *dkname, char *bootproto)
f = opendev(dkname, O_RDWR, OPENDEV_PART, &specname);
if (lseek(f, 0, SEEK_SET) < 0 ||
- read(f, pcpul, sizeof(struct mvmedisklabel)) <
+ read(f, pcpul, sizeof(struct mvmedisklabel)) !=
sizeof(struct mvmedisklabel))
err(4, "%s", specname);