From 4232cef812146bb217834c23010ea46c48828901 Mon Sep 17 00:00:00 2001 From: Mark Michelson Date: Tue, 18 Mar 2008 17:00:53 +0000 Subject: [PATCH] Add format attribute to printf-style functions in astmm.h git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@109545 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- include/asterisk/astmm.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/include/asterisk/astmm.h b/include/asterisk/astmm.h index 4487c17aa3..f2a632e3c7 100644 --- a/include/asterisk/astmm.h +++ b/include/asterisk/astmm.h @@ -43,9 +43,10 @@ void __ast_free(void *ptr, const char *file, int lineno, const char *func); 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);