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/printf.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/printf.c')
-rw-r--r-- | lib/libc/stdio/printf.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/libc/stdio/printf.c b/lib/libc/stdio/printf.c index 614b4351548..09bb3d7f7db 100644 --- a/lib/libc/stdio/printf.c +++ b/lib/libc/stdio/printf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: printf.c,v 1.7 2005/08/08 08:05:36 espie Exp $ */ +/* $OpenBSD: printf.c,v 1.8 2011/05/30 18:48:33 martynas Exp $ */ /*- * Copyright (c) 1990, 1993 * The Regents of the University of California. All rights reserved. @@ -34,6 +34,7 @@ #include <stdio.h> #include <stdarg.h> +/* PRINTFLIKE1 */ int printf(const char *fmt, ...) { |