Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/eeprom Hmm...My last change was a bit too drastic. ...



details:   https://anonhg.NetBSD.org/src/rev/c2cf0ad6f9e0
branches:  trunk
changeset: 503029:c2cf0ad6f9e0
user:      jmc <jmc%NetBSD.org@localhost>
date:      Mon Jan 29 03:11:50 2001 +0000

description:
Hmm...My last change was a bit too drastic. Sun3's would never run the inner
bit of checksum code. Restructure #ifdef's. Really, use_openprom should just
be visible on all ports and set to 0 on sun3 or something.

diffstat:

 usr.sbin/eeprom/main.c |  6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r 48819f48aca9 -r c2cf0ad6f9e0 usr.sbin/eeprom/main.c
--- a/usr.sbin/eeprom/main.c    Mon Jan 29 02:38:02 2001 +0000
+++ b/usr.sbin/eeprom/main.c    Mon Jan 29 03:11:50 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: main.c,v 1.13 2001/01/28 22:22:25 jmc Exp $    */
+/*     $NetBSD: main.c,v 1.14 2001/01/29 03:11:50 jmc Exp $    */
 
 /*-
  * Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -40,7 +40,7 @@
 #ifndef lint
 __COPYRIGHT(
 "@(#) Copyright (c) 1996 The NetBSD Foundation, Inc.  All rights reserved.");
-__RCSID("$NetBSD: main.c,v 1.13 2001/01/28 22:22:25 jmc Exp $");
+__RCSID("$NetBSD: main.c,v 1.14 2001/01/29 03:11:50 jmc Exp $");
 #endif
 
 #include <sys/param.h>
@@ -132,9 +132,11 @@
        use_openprom = check_for_openprom();
 
        if (use_openprom == 0) {
+#endif /* USE_OPENPROM */
                ee_verifychecksums();
                if (fix_checksum || cksumfail)
                        exit(cksumfail);
+#ifdef USE_OPENPROM
        }
 #endif /* USE_OPENPROM */
 



Home | Main Index | Thread Index | Old Index