summaryrefslogtreecommitdiff
path: root/libc/misc
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2011-04-14 15:37:22 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2012-06-15 14:00:36 +0200
commitdaace91624c983b0dabd1c4f391b45cfc5528701 (patch)
tree2aa980225638399444de8f2de7e9a7ca2240c84c /libc/misc
parent508b20ead1710e8c295630d096960e51a65b7e5d (diff)
syslog.c: no need for hidden vsyslog, use a static __vsyslog instead
It is only used within the same file. Guard the visible version according to header. Signed-off-by: Peter S. Mazinger <ps.m@gmx.net> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/misc')
-rw-r--r--libc/misc/syslog/syslog.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/libc/misc/syslog/syslog.c b/libc/misc/syslog/syslog.c
index 1b109e53c..f79b92fc3 100644
--- a/libc/misc/syslog/syslog.c
+++ b/libc/misc/syslog/syslog.c
@@ -181,8 +181,12 @@ libc_hidden_def(openlog)
* syslog, vsyslog --
* print message on log file; output is intended for syslogd(8).
*/
+static
+#ifndef __USE_BSD
+__always_inline
+#endif
void
-vsyslog(int pri, const char *fmt, va_list ap)
+__vsyslog(int pri, const char *fmt, va_list ap)
{
register char *p;
char *last_chr, *head_end, *end, *stdp;
@@ -301,7 +305,9 @@ vsyslog(int pri, const char *fmt, va_list ap)
getout:
__UCLIBC_MUTEX_UNLOCK(mylock);
}
-libc_hidden_def(vsyslog)
+#ifdef __USE_BSD
+strong_alias(__vsyslog,vsyslog)
+#endif
void
syslog(int pri, const char *fmt, ...)
@@ -309,7 +315,7 @@ syslog(int pri, const char *fmt, ...)
va_list ap;
va_start(ap, fmt);
- vsyslog(pri, fmt, ap);
+ __vsyslog(pri, fmt, ap);
va_end(ap);
}
libc_hidden_def(syslog)