Module Name:    src
Committed By:   tsutsui
Date:           Wed Jan 12 15:32:43 UTC 2011

Modified Files:
        src/sys/arch/pmax/stand/common: if_prom.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/pmax/stand/common/if_prom.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/pmax/stand/common/if_prom.c
diff -u src/sys/arch/pmax/stand/common/if_prom.c:1.10 src/sys/arch/pmax/stand/common/if_prom.c:1.11
--- src/sys/arch/pmax/stand/common/if_prom.c:1.10	Mon Jan 10 17:01:17 2011
+++ src/sys/arch/pmax/stand/common/if_prom.c	Wed Jan 12 15:32:43 2011
@@ -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;

Reply via email to