diff options
author | 2011-05-30 18:48:33 +0000 | |
---|---|---|
committer | 2011-05-30 18:48:33 +0000 | |
commit | b18e690dce4ce381e3ca4984173985d640e8a5f5 (patch) | |
tree | 74b32a351aba7b7cd1c8a5f6058e5cef7cec216b /lib/libc/gen/err.c | |
parent | Trick lint into recording the right prototypes in the llib-lm.ln (diff) | |
download | wireguard-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/err.c')
-rw-r--r-- | lib/libc/gen/err.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libc/gen/err.c b/lib/libc/gen/err.c index 3ee4bbcdc88..ff335938214 100644 --- a/lib/libc/gen/err.c +++ b/lib/libc/gen/err.c @@ -1,4 +1,4 @@ -/* $OpenBSD: err.c,v 1.9 2005/08/08 08:05:33 espie Exp $ */ +/* $OpenBSD: err.c,v 1.10 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> +/* PRINTFLIKE2 */ __dead void _err(int eval, const char *fmt, ...) { @@ -42,5 +43,6 @@ _err(int eval, const char *fmt, ...) va_end(ap); } +/* PRINTFLIKE2 */ __weak_alias(err, _err); |