Source-Changes-HG archive

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

[src/trunk]: src/sys Move HEXDIGIT to mvme68k's sboot. It seems to be the onl...



details:   https://anonhg.NetBSD.org/src/rev/0509e7b8e703
branches:  trunk
changeset: 762651:0509e7b8e703
user:      joerg <joerg%NetBSD.org@localhost>
date:      Fri Feb 25 00:17:35 2011 +0000

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

diffstat:

 sys/arch/mvme68k/stand/sboot/etherfun.c |  3 ++-
 sys/lib/libsa/stand.h                   |  3 +--
 sys/lib/libsa/subr_prf.c                |  3 +--
 3 files changed, 4 insertions(+), 5 deletions(-)

diffs (51 lines):

diff -r ed2a7c419f9f -r 0509e7b8e703 sys/arch/mvme68k/stand/sboot/etherfun.c
--- a/sys/arch/mvme68k/stand/sboot/etherfun.c   Thu Feb 24 23:49:26 2011 +0000
+++ b/sys/arch/mvme68k/stand/sboot/etherfun.c   Fri Feb 25 00:17:35 2011 +0000
@@ -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) 
diff -r ed2a7c419f9f -r 0509e7b8e703 sys/lib/libsa/stand.h
--- a/sys/lib/libsa/stand.h     Thu Feb 24 23:49:26 2011 +0000
+++ b/sys/lib/libsa/stand.h     Fri Feb 25 00:17:35 2011 +0000
@@ -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. */
diff -r ed2a7c419f9f -r 0509e7b8e703 sys/lib/libsa/subr_prf.c
--- a/sys/lib/libsa/subr_prf.c  Thu Feb 24 23:49:26 2011 +0000
+++ b/sys/lib/libsa/subr_prf.c  Fri Feb 25 00:17:35 2011 +0000
@@ -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



Home | Main Index | Thread Index | Old Index