[asterisk-commits] russell: branch russell/ast_verbose_threadstorage r38453 - /team/russell/ast_...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Fri Jul 28 15:19:27 MST 2006


Author: russell
Date: Fri Jul 28 17:19:27 2006
New Revision: 38453

URL: http://svn.digium.com/view/asterisk?rev=38453&view=rev
Log:
ensure that type checking is done on the format string and corresponding args

Modified:
    team/russell/ast_verbose_threadstorage/include/asterisk/threadstorage.h

Modified: team/russell/ast_verbose_threadstorage/include/asterisk/threadstorage.h
URL: http://svn.digium.com/view/asterisk/team/russell/ast_verbose_threadstorage/include/asterisk/threadstorage.h?rev=38453&r1=38452&r2=38453&view=diff
==============================================================================
--- team/russell/ast_verbose_threadstorage/include/asterisk/threadstorage.h (original)
+++ team/russell/ast_verbose_threadstorage/include/asterisk/threadstorage.h Fri Jul 28 17:19:27 2006
@@ -297,7 +297,8 @@
  *         family of functions.
  */
 AST_INLINE_API(
-int ast_dynamic_str_printf(struct ast_dynamic_str **buf, size_t max_len,
+int __attribute__ ((format (printf, 3, 4))) ast_dynamic_str_printf(
+	struct ast_dynamic_str **buf, size_t max_len,
 	const char *fmt, ...),
 {
 	int res;
@@ -351,7 +352,8 @@
  * \endcode
  */
 AST_INLINE_API(
-int ast_dynamic_str_thread_printf(struct ast_dynamic_str **buf, size_t max_len, 
+int __attribute__ ((format (printf, 4, 5))) ast_dynamic_str_thread_printf(
+	struct ast_dynamic_str **buf, size_t max_len, 
 	struct ast_threadstorage *ts, const char *fmt, ...),
 {
 	int res;



More information about the asterisk-commits mailing list