svn commit: r306845 - stable/11/include
Eric van Gyzen
vangyzen at FreeBSD.org
Sat Oct 8 14:07:35 UTC 2016
Author: vangyzen
Date: Sat Oct 8 14:07:34 2016
New Revision: 306845
URL: https://svnweb.freebsd.org/changeset/base/306845
Log:
MFC r306568, r306569
Add the __printflike attribute to the declarations of
dprintf(3) and vdprintf(3).
Sponsored by: Dell EMC
Modified:
stable/11/include/stdio.h
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/include/stdio.h
==============================================================================
--- stable/11/include/stdio.h Sat Oct 8 13:49:40 2016 (r306844)
+++ stable/11/include/stdio.h Sat Oct 8 14:07:34 2016 (r306845)
@@ -356,7 +356,7 @@ ssize_t getdelim(char ** __restrict, si
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, siz
#endif
#ifdef _WITH_DPRINTF
-int (dprintf)(int, const char * __restrict, ...);
+int (dprintf)(int, const char * __restrict, ...) __printflike(2, 3);
#endif
#endif /* __POSIX_VISIBLE >= 200809 */
More information about the svn-src-all
mailing list