summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen/syslog_r.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_r.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_r.c')
-rw-r--r--lib/libc/gen/syslog_r.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/gen/syslog_r.c b/lib/libc/gen/syslog_r.c
index 6e38a62d276..2a966a4ba62 100644
--- a/lib/libc/gen/syslog_r.c
+++ b/lib/libc/gen/syslog_r.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: syslog_r.c,v 1.2 2009/11/21 10:23:31 chl Exp $ */
+/* $OpenBSD: syslog_r.c,v 1.3 2011/05/30 18:48:33 martynas Exp $ */
/*
* Copyright (c) 1983, 1988, 1993
* The Regents of the University of California. All rights reserved.
@@ -54,6 +54,7 @@ void __vsyslog_r(int pri, struct syslog_data *, size_t (*)(char *, size_t),
/* Reentrant version of syslog, i.e. syslog_r() */
+/* PRINTFLIKE3 */
void
syslog_r(int pri, struct syslog_data *data, const char *fmt, ...)
{