svn commit: r306846 - stable/10/include
Eric van Gyzen
vangyzen at FreeBSD.org
Sat Oct 8 14:10:46 UTC 2016
Author: vangyzen
Date: Sat Oct 8 14:10:45 2016
New Revision: 306846
URL: https://svnweb.freebsd.org/changeset/base/306846
Log:
MFC r306568, r306569
Add the __printflike attribute to the declarations of
dprintf(3) and vdprintf(3).
Sponsored by: Dell EMC
Modified:
stable/10/include/stdio.h
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/include/stdio.h
==============================================================================
--- stable/10/include/stdio.h Sat Oct 8 14:07:34 2016 (r306845)
+++ stable/10/include/stdio.h Sat Oct 8 14:10:45 2016 (r306846)
@@ -351,7 +351,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()
@@ -387,7 +387,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 /* __BSD_VISIBLE || __POSIX_VISIBLE >= 200809 */
More information about the svn-src-stable
mailing list