summaryrefslogtreecommitdiff
path: root/lib/libc/gen/warnx.c
diff options
context:
space:
mode:
authorMartynas Venckus <martynas@cvs.openbsd.org>2011-05-30 18:48:34 +0000
committerMartynas Venckus <martynas@cvs.openbsd.org>2011-05-30 18:48:34 +0000
commite8e86f50ba5766847341543ad3ae23fd9fb9cdfa (patch)
treed4494067d9a68b8a12bc70fdce778dc9bbcbd7bc /lib/libc/gen/warnx.c
parentafbe27659d775f2cab2735cdcfa8d42dd7a5029a (diff)
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/warnx.c')
-rw-r--r--lib/libc/gen/warnx.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gen/warnx.c b/lib/libc/gen/warnx.c
index 42a15778c68..8a94cbd0905 100644
--- a/lib/libc/gen/warnx.c
+++ b/lib/libc/gen/warnx.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: warnx.c,v 1.7 2005/08/08 08:05:34 espie Exp $ */
+/* $OpenBSD: warnx.c,v 1.8 2011/05/30 18:48:33 martynas Exp $ */
/*-
* Copyright (c) 1993
* The Regents of the University of California. All rights reserved.
@@ -32,6 +32,7 @@
#include <err.h>
#include <stdarg.h>
+/* PRINTFLIKE1 */
void
_warnx(const char *fmt, ...)
{
@@ -42,5 +43,6 @@ _warnx(const char *fmt, ...)
va_end(ap);
}
+/* PRINTFLIKE1 */
__weak_alias(warnx, _warnx);