Author: vangyzen
Date: Sat Oct  1 23:08:26 2016
New Revision: 306569
URL: https://svnweb.freebsd.org/changeset/base/306569

Log:
  Add the __printflike attribute to the declaration of vdprintf(3)
  
  I intended to add this in r306568.
  
  MFC after:    3 days
  Sponsored by: Dell EMC

Modified:
  head/include/stdio.h

Modified: head/include/stdio.h
==============================================================================
--- head/include/stdio.h        Sat Oct  1 22:34:38 2016        (r306568)
+++ head/include/stdio.h        Sat Oct  1 23:08:26 2016        (r306569)
@@ -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);
 /* _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, ...) __printflike(2, 3);
_______________________________________________
svn-src-all@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to