Module Name:    src
Committed By:   joerg
Date:           Fri Feb 25 00:17:36 UTC 2011

Modified Files:
        src/sys/arch/mvme68k/stand/sboot: etherfun.c
        src/sys/lib/libsa: stand.h subr_prf.c

Log Message:
Move HEXDIGIT to mvme68k's sboot. It seems to be the only user.
Save a byte by explicitly specifying the size.


To generate a diff of this commit:
cvs rdiff -u -r1.10 -r1.11 src/sys/arch/mvme68k/stand/sboot/etherfun.c
cvs rdiff -u -r1.70 -r1.71 src/sys/lib/libsa/stand.h
cvs rdiff -u -r1.17 -r1.18 src/sys/lib/libsa/subr_prf.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/mvme68k/stand/sboot/etherfun.c
diff -u src/sys/arch/mvme68k/stand/sboot/etherfun.c:1.10 src/sys/arch/mvme68k/stand/sboot/etherfun.c:1.11
--- src/sys/arch/mvme68k/stand/sboot/etherfun.c:1.10	Wed Feb  2 17:53:41 2011
+++ src/sys/arch/mvme68k/stand/sboot/etherfun.c	Fri Feb 25 00:17:35 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: etherfun.c,v 1.10 2011/02/02 17:53:41 chuck Exp $	*/
+/*	$NetBSD: etherfun.c,v 1.11 2011/02/25 00:17:35 joerg Exp $	*/
 
 /*
  * Copyright (c) 1995 Charles D. Cranor and Seth Widoff
@@ -90,6 +90,7 @@
 
 /* Send a tftp read request or acknowledgement 
    mesgtype 0 is a read request, 1 is an aknowledgement */
+static const char HEXDIGITS[16] = "0123456789ABCDEF";
 
 void 
 do_send_tftp(int mesgtype) 

Index: src/sys/lib/libsa/stand.h
diff -u src/sys/lib/libsa/stand.h:1.70 src/sys/lib/libsa/stand.h:1.71
--- src/sys/lib/libsa/stand.h:1.70	Fri Dec 24 23:12:28 2010
+++ src/sys/lib/libsa/stand.h	Fri Feb 25 00:17:36 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: stand.h,v 1.70 2010/12/24 23:12:28 christos Exp $	*/
+/*	$NetBSD: stand.h,v 1.71 2011/02/25 00:17:36 joerg Exp $	*/
 
 /*
  * Copyright (c) 1999 Christopher G. Demetriou.  All rights reserved.
@@ -285,7 +285,6 @@
 off_t	olseek(int, off_t, int);
 #endif
 
-extern const char HEXDIGITS[];
 extern const char hexdigits[];
 
 /* XXX: These should be removed eventually. */

Index: src/sys/lib/libsa/subr_prf.c
diff -u src/sys/lib/libsa/subr_prf.c:1.17 src/sys/lib/libsa/subr_prf.c:1.18
--- src/sys/lib/libsa/subr_prf.c:1.17	Tue Jan 19 15:26:45 2010
+++ src/sys/lib/libsa/subr_prf.c	Fri Feb 25 00:17:36 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: subr_prf.c,v 1.17 2010/01/19 15:26:45 tsutsui Exp $	*/
+/*	$NetBSD: subr_prf.c,v 1.18 2011/02/25 00:17:36 joerg Exp $	*/
 
 /*-
  * Copyright (c) 1993
@@ -66,7 +66,6 @@
 
 static char *sbuf, *ebuf;
 
-const char HEXDIGITS[] = "0123456789ABCDEF";
 const char hexdigits[] = "0123456789abcdef";
 
 #define LONG		0x01

Reply via email to