summaryrefslogtreecommitdiff
path: root/libc/misc/gnu
diff options
context:
space:
mode:
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)