Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/alpha/stand/installboot fix disk write size check



details:   https://anonhg.NetBSD.org/src/rev/81aed6cb187d
branches:  trunk
changeset: 471583:81aed6cb187d
user:      cgd <cgd%NetBSD.org@localhost>
date:      Mon Apr 05 05:01:44 1999 +0000

description:
fix disk write size check

diffstat:

 sys/arch/alpha/stand/installboot/installboot.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 665638b59b5c -r 81aed6cb187d sys/arch/alpha/stand/installboot/installboot.c
--- a/sys/arch/alpha/stand/installboot/installboot.c    Mon Apr 05 04:39:42 1999 +0000
+++ b/sys/arch/alpha/stand/installboot/installboot.c    Mon Apr 05 05:01:44 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: installboot.c,v 1.14 1999/04/05 03:07:37 cgd Exp $ */
+/* $NetBSD: installboot.c,v 1.15 1999/04/05 05:01:44 cgd Exp $ */
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -248,7 +248,7 @@
            BOOT_BLOCK_OFFSET + BOOT_BLOCK_BLOCKSIZE);
        if (rv == -1)
                err(EXIT_FAILURE, "write %s", disk);
-       else if (rv != sizeof bb)
+       else if (rv != bootstrapsize)
                errx(EXIT_FAILURE, "write %s: short write", disk);
 
        if (verbose)



Home | Main Index | Thread Index | Old Index