diff options
author | Martynas Venckus <martynas@cvs.openbsd.org> | 2011-05-30 18:48:34 +0000 |
---|---|---|
committer | Martynas Venckus <martynas@cvs.openbsd.org> | 2011-05-30 18:48:34 +0000 |
commit | e8e86f50ba5766847341543ad3ae23fd9fb9cdfa (patch) | |
tree | d4494067d9a68b8a12bc70fdce778dc9bbcbd7bc /lib/libc/gen/warnx.c | |
parent | afbe27659d775f2cab2735cdcfa8d42dd7a5029a (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.c | 4 |
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); |