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/stdio/asprintf.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/stdio/asprintf.c')
-rw-r--r-- | lib/libc/stdio/asprintf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/asprintf.c b/lib/libc/stdio/asprintf.c index d1d023a6b4a..5424c90dc9d 100644 --- a/lib/libc/stdio/asprintf.c +++ b/lib/libc/stdio/asprintf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: asprintf.c,v 1.18 2009/11/09 00:18:27 kurt Exp $ */ +/* $OpenBSD: asprintf.c,v 1.19 2011/05/30 18:48:33 martynas Exp $ */ /* * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> @@ -23,6 +23,7 @@ #include <stdarg.h> #include "local.h" +/* PRINTFLIKE2 */ int asprintf(char **str, const char *fmt, ...) { |