Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/citrus _citrus_find_getops: use _C_LABEL_STRING.



details:   https://anonhg.NetBSD.org/src/rev/3f4f367eacf8
branches:  trunk
changeset: 572132:3f4f367eacf8
user:      yamt <yamt%NetBSD.org@localhost>
date:      Tue Dec 21 09:00:01 2004 +0000

description:
_citrus_find_getops: use _C_LABEL_STRING.

diffstat:

 lib/libc/citrus/citrus_module.c |  12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)

diffs (33 lines):

diff -r b1d0e5d69b98 -r 3f4f367eacf8 lib/libc/citrus/citrus_module.c
--- a/lib/libc/citrus/citrus_module.c   Tue Dec 21 08:07:41 2004 +0000
+++ b/lib/libc/citrus/citrus_module.c   Tue Dec 21 09:00:01 2004 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: citrus_module.c,v 1.3 2003/08/07 16:42:38 agc Exp $    */
+/*     $NetBSD: citrus_module.c,v 1.4 2004/12/21 09:00:01 yamt Exp $   */
 
 /*-
  * Copyright (c)1999, 2000, 2001, 2002 Citrus Project,
@@ -96,7 +96,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: citrus_module.c,v 1.3 2003/08/07 16:42:38 agc Exp $");
+__RCSID("$NetBSD: citrus_module.c,v 1.4 2004/12/21 09:00:01 yamt Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <assert.h>
@@ -290,12 +290,8 @@
        _DIAGASSERT(modname != NULL);
        _DIAGASSERT(ifname != NULL);
 
-#ifdef __ELF__
-       snprintf(name, sizeof(name), "_citrus_%s_%s_getops", modname, ifname);
-#else
-       /* a.out case */
-       snprintf(name, sizeof(name), "__citrus_%s_%s_getops", modname, ifname);
-#endif
+       snprintf(name, sizeof(name), _C_LABEL_STRING("_citrus_%s_%s_getops"),
+           modname, ifname);
        p = dlsym((void *)handle, name);
        return p;
 }



Home | Main Index | Thread Index | Old Index