diff options
author | Eric van Gyzen <vangyzen@FreeBSD.org> | 2016-10-01 22:34:38 +0000 |
---|---|---|
committer | Eric van Gyzen <vangyzen@FreeBSD.org> | 2016-10-01 22:34:38 +0000 |
commit | 21ac7a7f75a932108ddf3eb34d9632f463e2ad37 (patch) | |
tree | 35b01cc7573eb55d5b7b8618aabdb0a7b0831297 /include | |
parent | fb6ddd454aa49a831bf0df1de701d3ed3759ca1f (diff) | |
download | src-21ac7a7f75a932108ddf3eb34d9632f463e2ad37.tar.gz src-21ac7a7f75a932108ddf3eb34d9632f463e2ad37.zip |
Add the __printflike attribute to the declaration of dprintf(3)
MFC after: 3 days
Sponsored by: Dell EMC
Notes
Notes:
svn path=/head/; revision=306568
Diffstat (limited to 'include')
-rw-r--r-- | include/stdio.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdio.h b/include/stdio.h index 75c265485f1b..862bc8e8c25a 100644 --- a/include/stdio.h +++ b/include/stdio.h @@ -359,7 +359,7 @@ int renameat(int, const char *, int, const char *); int vdprintf(int, const char * __restrict, __va_list); /* _WITH_GETLINE to allow pre 11 sources to build on 11+ systems */ ssize_t getline(char ** __restrict, size_t * __restrict, FILE * __restrict); -int dprintf(int, const char * __restrict, ...); +int dprintf(int, const char * __restrict, ...) __printflike(2, 3); #endif /* __POSIX_VISIBLE >= 200809 */ /* |