aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/compat.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-27 19:27:48 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-27 19:27:48 +0000
commit61d09097ddf70f3bc9a5ef96f1df1f0a45f4496d (patch)
tree61f993f0cc1d4d3ad59d15d5d4c9dfe8e85a6f1f /include/asterisk/compat.h
parent3707e8c13e8e63356aaa2a2d3f9b5cf270d9e6eb (diff)
Add printf format attribute for vasprintf().
(closes issue #12729) Reported by: snuffy Patches: bug_12729.diff uploaded by snuffy (license 35) git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118556 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include/asterisk/compat.h')
-rw-r--r--include/asterisk/compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h
index 4ba4c46d4..950712060 100644
--- a/include/asterisk/compat.h
+++ b/include/asterisk/compat.h
@@ -110,7 +110,7 @@ int unsetenv(const char *name);
#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