summaryrefslogtreecommitdiffstats
path: root/lib/libc/hidden/syslog.h
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2015-10-31 02:57:16 +0000
committerderaadt <deraadt@openbsd.org>2015-10-31 02:57:16 +0000
commit1778bf5bfab38adeb6a507dfbd135daf8f1fbf3e (patch)
tree0f69490663276b5fdaf25fd5acfeccd6a1b7c1ba /lib/libc/hidden/syslog.h
parentexpose the sysctl backing getloadavg(3) all the time, now that more (diff)
downloadwireguard-openbsd-1778bf5bfab38adeb6a507dfbd135daf8f1fbf3e.tar.xz
wireguard-openbsd-1778bf5bfab38adeb6a507dfbd135daf8f1fbf3e.zip
Do not include a timestamp in the syslog message. There is no need --
syslogd will fill it in immediately upon reception on the other side of sendsyslog(2). Our libc only talks to our syslogd, which will fix the timestamp before forwarding. syslog_r has done this for a long time already. ok tedu bluhm
Diffstat (limited to 'lib/libc/hidden/syslog.h')
-rw-r--r--lib/libc/hidden/syslog.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/hidden/syslog.h b/lib/libc/hidden/syslog.h
index 867a05ca7ea..1773baaef26 100644
--- a/lib/libc/hidden/syslog.h
+++ b/lib/libc/hidden/syslog.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: syslog.h,v 1.1 2015/09/12 14:30:31 guenther Exp $ */
+/* $OpenBSD: syslog.h,v 1.2 2015/10/31 02:57:16 deraadt Exp $ */
/*
* Copyright (c) 2015 Philip Guenther <guenther@openbsd.org>
*
@@ -24,7 +24,7 @@ int sendsyslog(const char *, __size_t);
PROTO_NORMAL(sendsyslog);
__BEGIN_HIDDEN_DECLS
-void __vsyslog_r(int, struct syslog_data *, __size_t (*)(char *, __size_t),
+void __vsyslog_r(int, struct syslog_data *, int,
const char *, __va_list);
__END_HIDDEN_DECLS