Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 Oct 2016 22:34:39 +0000 (UTC)
From:      Eric van Gyzen <vangyzen@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r306568 - head/include
Message-ID:  <201610012234.u91MYdSO044969@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: vangyzen
Date: Sat Oct  1 22:34:38 2016
New Revision: 306568
URL: https://svnweb.freebsd.org/changeset/base/306568

Log:
  Add the __printflike attribute to the declaration of dprintf(3)
  
  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:21:10 2016	(r306567)
+++ head/include/stdio.h	Sat Oct  1 22:34:38 2016	(r306568)
@@ -359,7 +359,7 @@ int	 renameat(int, const char *, int, co
 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 */
 
 /*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201610012234.u91MYdSO044969>