summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/syslog.c
diff options
context:
space:
mode:
authormartynas <martynas@openbsd.org>2011-05-30 18:48:33 +0000
committermartynas <martynas@openbsd.org>2011-05-30 18:48:33 +0000
commitb18e690dce4ce381e3ca4984173985d640e8a5f5 (patch)
tree74b32a351aba7b7cd1c8a5f6058e5cef7cec216b /lib/libc/gen/syslog.c
parentTrick lint into recording the right prototypes in the llib-lm.ln (diff)
downloadwireguard-openbsd-b18e690dce4ce381e3ca4984173985d640e8a5f5.tar.xz
wireguard-openbsd-b18e690dce4ce381e3ca4984173985d640e8a5f5.zip
Make printf-like and scanf-like functions marked as such in llib-lc.ln
and llib-lwrap.ln databases; so that the lint features doing format strings checks are enabled by default. Looks good to millert@.
Diffstat (limited to 'lib/libc/gen/syslog.c')
-rw-r--r--lib/libc/gen/syslog.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/syslog.c b/lib/libc/gen/syslog.c
index 46c04a08ddd..e713b64edcf 100644
--- a/lib/libc/gen/syslog.c
+++ b/lib/libc/gen/syslog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syslog.c,v 1.30 2009/11/18 07:43:22 guenther Exp $ */
+/* $OpenBSD: syslog.c,v 1.31 2011/05/30 18:48:33 martynas Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -63,6 +63,7 @@ gettime(char *buf, size_t maxsize)
* syslog, vsyslog --
* print message on log file; output is intended for syslogd(8).
*/
+/* PRINTFLIKE2 */
void
syslog(int pri, const char *fmt, ...)
{