[asterisk-commits] mmichelson: trunk r109545 - /trunk/include/asterisk/astmm.h
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 18 12:00:54 CDT 2008
Author: mmichelson
Date: Tue Mar 18 12:00:53 2008
New Revision: 109545
URL: http://svn.digium.com/view/asterisk?view=rev&rev=109545
Log:
Add format attribute to printf-style functions in astmm.h
Modified:
trunk/include/asterisk/astmm.h
Modified: trunk/include/asterisk/astmm.h
URL: http://svn.digium.com/view/asterisk/trunk/include/asterisk/astmm.h?view=diff&rev=109545&r1=109544&r2=109545
==============================================================================
--- trunk/include/asterisk/astmm.h (original)
+++ trunk/include/asterisk/astmm.h Tue Mar 18 12:00:53 2008
@@ -43,9 +43,10 @@
void *__ast_realloc(void *ptr, size_t size, const char *file, int lineno, const char *func);
char *__ast_strdup(const char *s, const char *file, int lineno, const char *func);
char *__ast_strndup(const char *s, size_t n, const char *file, int lineno, const char *func);
-int __ast_asprintf(const char *file, int lineno, const char *func, char **strp, const char *format, ...);
-int __ast_vasprintf(char **strp, const char *format, va_list ap, const char *file, int lineno, const char *func);
-
+int __ast_asprintf(const char *file, int lineno, const char *func, char **strp, const char *format, ...)
+ __attribute__ ((format (printf, 5, 6)));
+int __ast_vasprintf(char **strp, const char *format, va_list ap, const char *file, int lineno, const char *func)
+ __attribute__ ((format (printf, 2, 0)));
void __ast_mm_init(void);
More information about the asterisk-commits
mailing list