summaryrefslogtreecommitdiff
path: root/libc/misc/gnu
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-06-14 14:27:06 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2013-06-14 14:27:06 +0200
commit975bca165c3e10e74c05c0384fd58f45a7025a3c (patch)
treef248f806055853ffd0b67a5ae0cebd3b5faf202d /libc/misc/gnu
parent10d12e77d5cdffd064719356a87f839225916a4a (diff)
libc: hide obstack relocations
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/misc/gnu')
-rw-r--r--libc/misc/gnu/obprintf.c16
1 files changed, 5 insertions, 11 deletions
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 <stdio.h>
#include <stdarg.h>
-
-#ifdef _LIBC
-# include <obstack.h>
-#else
-# include "obstack.h"
-#endif
+#include <obstack.h>
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)