aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-27 19:28:19 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-27 19:28:19 +0000
commit0d14ad0c7598a7c58b65af632c873e760a2de30d (patch)
tree3b9c27b37388ac78d0d44d2e48b0da51a9322cb6 /include
parenta6953471cd646b117f2299047a198c853303d64b (diff)
Merged revisions 118556 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r118556 | russell | 2008-05-27 14:27:48 -0500 (Tue, 27 May 2008) | 6 lines 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/branches/1.6.0@118557 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-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