Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/pmax/stand/common Pull a fix from src/sys/net/if_et...



details:   https://anonhg.NetBSD.org/src/rev/f63aedc18bf4
branches:  trunk
changeset: 760739:f63aedc18bf4
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Wed Jan 12 15:32:43 2011 +0000

description:
Pull a fix from src/sys/net/if_ethersubr.c rev. 1.185:
 Fix off by one.

diffstat:

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

diffs (18 lines):

diff -r 9574a8bfad57 -r f63aedc18bf4 sys/arch/pmax/stand/common/if_prom.c
--- a/sys/arch/pmax/stand/common/if_prom.c      Wed Jan 12 15:30:40 2011 +0000
+++ b/sys/arch/pmax/stand/common/if_prom.c      Wed Jan 12 15:32:43 2011 +0000
@@ -1,4 +1,4 @@
-/*      $NetBSD: if_prom.c,v 1.10 2011/01/10 17:01:17 tsutsui Exp $ */
+/*      $NetBSD: if_prom.c,v 1.11 2011/01/12 15:32:43 tsutsui Exp $ */
 
 /* Copyright (c) 1999 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -150,7 +150,7 @@
                printf("enet=%s\n", enet);
 #endif
 
-#define atox(c)        (((c) < '9') ? ((c) - '0') : ((toupper(c) - 'A') + 10))
+#define atox(c)        (((c) <= '9') ? ((c) - '0') : ((toupper(c) - 'A') + 10))
 
        cp = (uint8_t *)enet;
        dest = desc->myea;



Home | Main Index | Thread Index | Old Index