Source-Changes-HG archive

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

[src/netbsd-1-5]: src/sys/arch/pmax/stand/installboot Pullup 1.4 [dmcmahill]:



details:   https://anonhg.NetBSD.org/src/rev/94682d1a30ea
branches:  netbsd-1-5
changeset: 489774:94682d1a30ea
user:      tv <tv%NetBSD.org@localhost>
date:      Tue Oct 17 01:46:31 2000 +0000

description:
Pullup 1.4 [dmcmahill]:
make the MAGIC check be endian safe when clearing the bootstrap.

diffstat:

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

diffs (18 lines):

diff -r 755af2f1085b -r 94682d1a30ea sys/arch/pmax/stand/installboot/installboot.c
--- a/sys/arch/pmax/stand/installboot/installboot.c     Tue Oct 17 01:45:03 2000 +0000
+++ b/sys/arch/pmax/stand/installboot/installboot.c     Tue Oct 17 01:46:31 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: installboot.c,v 1.3 2000/06/16 23:24:30 matt Exp $ */
+/* $NetBSD: installboot.c,v 1.3.2.1 2000/10/17 01:46:31 tv Exp $ */
 
 /*
  * Copyright (c) 1999 Ross Harvey.  All rights reserved.
@@ -183,7 +183,7 @@
        else if (rv != sizeof bb)
                errx(EXIT_FAILURE, "read %s: short read", disk);
 
-       if (bb.magic != PMAX_BOOT_MAGIC) {
+       if (le32toh(bb.magic) != PMAX_BOOT_MAGIC) {
                fprintf(stderr, "old boot block magic number invalid (%#x)\n",
                    bb.magic);
                fprintf(stderr, "boot block invalid\n");



Home | Main Index | Thread Index | Old Index