From 975bca165c3e10e74c05c0384fd58f45a7025a3c Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Fri, 14 Jun 2013 14:27:06 +0200 Subject: libc: hide obstack relocations Signed-off-by: Bernhard Reutner-Fischer --- libc/misc/gnu/obprintf.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'libc/misc') diff --git a/libc/misc/gnu/obprintf.c b/libc/misc/gnu/obprintf.c index 70c058fe5..3f8eda832 100644 --- a/libc/misc/gnu/obprintf.c +++ b/libc/misc/gnu/obprintf.c @@ -4,15 +4,10 @@ #include #include - -#ifdef _LIBC -# include -#else -# include "obstack.h" -#endif +#include int -_obstack_vprintf (struct obstack *obstack, const char *format, va_list args) +obstack_vprintf (struct obstack *obstack, const char *format, va_list args) { int n; char *s; @@ -20,16 +15,15 @@ _obstack_vprintf (struct obstack *obstack, const char *format, va_list args) obstack_grow(obstack, s, n); return n; } -weak_alias (_obstack_vprintf, obstack_vprintf) +libc_hidden_def(obstack_vprintf) int -_obstack_printf (struct obstack *obstack, const char *format, ...) +obstack_printf (struct obstack *obstack, const char *format, ...) { int n; va_list ap; va_start (ap, format); - n = _obstack_vprintf (obstack, format, ap); + n = obstack_vprintf (obstack, format, ap); va_end (ap); return n; } -weak_alias (_obstack_printf, obstack_printf) -- cgit v1.2.3