Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/sun68k/stand/installboot Fixed a bug where we would...



details:   https://anonhg.NetBSD.org/src/rev/23ee70b07e90
branches:  trunk
changeset: 519454:23ee70b07e90
user:      fredette <fredette%NetBSD.org@localhost>
date:      Mon Dec 17 21:55:13 2001 +0000

description:
Fixed a bug where we would always byteswap things,
even on a big-endian machine.

diffstat:

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

diffs (18 lines):

diff -r 7c08fb286d8e -r 23ee70b07e90 sys/arch/sun68k/stand/installboot/installboot.c
--- a/sys/arch/sun68k/stand/installboot/installboot.c   Mon Dec 17 21:39:51 2001 +0000
+++ b/sys/arch/sun68k/stand/installboot/installboot.c   Mon Dec 17 21:55:13 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: installboot.c,v 1.2 2001/12/15 23:09:51 fredette Exp $ */
+/*     $NetBSD: installboot.c,v 1.3 2001/12/17 21:55:13 fredette Exp $ */
 
 /*-
  * Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -278,7 +278,7 @@
        /* Read superblock */
        devread(devfd, sblock, SBLOCK, SBSIZE, "superblock");
        fs = (struct fs *)sblock;
-       needswap = (sa_be32toh(fs->fs_magic) == FS_MAGIC);
+       needswap = (fs->fs_magic != FS_MAGIC);
        if (needswap)
                ffs_sb_swap(fs, fs);
 



Home | Main Index | Thread Index | Old Index