aboutsummaryrefslogtreecommitdiffstats
path: root/include/asterisk/compat.h
diff options
context:
space:
mode:
authorrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-27 14:51:13 +0000
committerrussell <russell@f38db490-d61c-443f-a65b-d21fe96a405b>2008-05-27 14:51:13 +0000
commit972fcd5bca03601afbf6ac79487c21015fb5b573 (patch)
tree7d63b5928f7fbcd764dc222822fa17e67d774c33 /include/asterisk/compat.h
parent0ae2420f0189b2cfd3668f115eeaac8521838a29 (diff)
Add printf attribute to asprintf
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@118328 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 43da49bc0..4ba4c46d4 100644
--- a/include/asterisk/compat.h
+++ b/include/asterisk/compat.h
@@ -74,7 +74,7 @@
#endif
#if !defined(HAVE_ASPRINTF) && !defined(__AST_DEBUG_MALLOC)
-int asprintf(char **str, const char *fmt, ...);
+int __attribute__ ((format (printf, 2, 3))) asprintf(char **str, const char *fmt, ...);
#endif
#ifndef HAVE_GETLOADAVG