summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorvangyzen <vangyzen@FreeBSD.org>2016-10-08 14:07:34 +0000
committervangyzen <vangyzen@FreeBSD.org>2016-10-08 14:07:34 +0000
commit504f5f9ebd3fc838f64816c0d5439ed5a35a8cf0 (patch)
tree69f56b449364693f8ed1a1f3208db81d2ac261ab /include
parent4e61923fc39d9943b2a79908bb786f8dd145c801 (diff)
downloadFreeBSD-src-504f5f9ebd3fc838f64816c0d5439ed5a35a8cf0.zip
FreeBSD-src-504f5f9ebd3fc838f64816c0d5439ed5a35a8cf0.tar.gz
MFC r306568, r306569
Add the __printflike attribute to the declarations of dprintf(3) and vdprintf(3). Sponsored by: Dell EMC
Diffstat (limited to 'include')
-rw-r--r--include/stdio.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/stdio.h b/include/stdio.h
index f16f644..7b7980e 100644
--- a/include/stdio.h
+++ b/include/stdio.h
@@ -356,7 +356,7 @@ ssize_t getdelim(char ** __restrict, size_t * __restrict, int,
FILE * __restrict);
FILE *open_memstream(char **, size_t *);
int renameat(int, const char *, int, const char *);
-int vdprintf(int, const char * __restrict, __va_list);
+int vdprintf(int, const char * __restrict, __va_list) __printflike(2, 0);
/*
* Every programmer and his dog wrote functions called getline() and dprintf()
@@ -392,7 +392,7 @@ ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict);
#endif
#ifdef _WITH_DPRINTF
-int (dprintf)(int, const char * __restrict, ...);
+int (dprintf)(int, const char * __restrict, ...) __printflike(2, 3);
#endif
#endif /* __POSIX_VISIBLE >= 200809 */
OpenPOWER on IntegriCloud