Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/gen Reduce the number of relative relocation by all...



details:   https://anonhg.NetBSD.org/src/rev/a85510bd95b8
branches:  trunk
changeset: 783309:a85510bd95b8
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Dec 14 21:31:01 2012 +0000

description:
Reduce the number of relative relocation by allocating space in the
structure directly (Jilles Tjoelker @ FreeBSD)

diffstat:

 lib/libc/gen/unvis.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r ff6047c9c42a -r a85510bd95b8 lib/libc/gen/unvis.c
--- a/lib/libc/gen/unvis.c      Fri Dec 14 19:38:36 2012 +0000
+++ b/lib/libc/gen/unvis.c      Fri Dec 14 21:31:01 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: unvis.c,v 1.39 2012/03/13 21:13:37 christos Exp $      */
+/*     $NetBSD: unvis.c,v 1.40 2012/12/14 21:31:01 christos Exp $      */
 
 /*-
  * Copyright (c) 1989, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)unvis.c    8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: unvis.c,v 1.39 2012/03/13 21:13:37 christos Exp $");
+__RCSID("$NetBSD: unvis.c,v 1.40 2012/12/14 21:31:01 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -81,7 +81,7 @@
  * RFC 1866
  */
 static const struct nv {
-       const char *name;
+       const char name[7];
        uint8_t value;
 } nv[] = {
        { "AElig",      198 }, /* capital AE diphthong (ligature)  */



Home | Main Index | Thread Index | Old Index