[svn-commits] russell: trunk r118556 - /trunk/include/asterisk/compat.h

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue May 27 14:27:49 CDT 2008


Author: russell
Date: Tue May 27 14:27:48 2008
New Revision: 118556

URL: http://svn.digium.com/view/asterisk?view=rev&rev=118556
Log:
Add printf format attribute for vasprintf().
(closes issue #12729)
Reported by: snuffy
Patches:
      bug_12729.diff uploaded by snuffy (license 35)

Modified:
    trunk/include/asterisk/compat.h

Modified: trunk/include/asterisk/compat.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/compat.h?view=diff&rev=118556&r1=118555&r2=118556
==============================================================================
--- trunk/include/asterisk/compat.h (original)
+++ trunk/include/asterisk/compat.h Tue May 27 14:27:48 2008
@@ -110,7 +110,7 @@
 #endif
 
 #if !defined(HAVE_VASPRINTF) && !defined(__AST_DEBUG_MALLOC)
-int vasprintf(char **strp, const char *fmt, va_list ap);
+int __attribute__ ((format (printf, 2, 0))) vasprintf(char **strp, const char *fmt, va_list ap);
 #endif
 
 #ifndef HAVE_STRLCAT




More information about the svn-commits mailing list