[svn-commits] tilghman: branch 1.4 r135899 - /branches/1.4/include/asterisk/

SVN commits to the Digium repositories svn-commits at lists.digium.com
Tue Aug 5 22:02:59 CDT 2008


Author: tilghman
Date: Tue Aug  5 22:02:59 2008
New Revision: 135899

URL: http://svn.digium.com/view/asterisk?view=rev&rev=135899
Log:
1) Bugfix for debugging code
2) Reduce compiler warnings for another section of debugging code
(Closes issue #13237)

Modified:
    branches/1.4/include/asterisk/threadstorage.h
    branches/1.4/include/asterisk/utils.h

Modified: branches/1.4/include/asterisk/threadstorage.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/threadstorage.h?view=diff&rev=135899&r1=135898&r2=135899
==============================================================================
--- branches/1.4/include/asterisk/threadstorage.h (original)
+++ branches/1.4/include/asterisk/threadstorage.h Tue Aug  5 22:02:59 2008
@@ -159,7 +159,7 @@
 		if (!(buf = ast_calloc(1, init_size)))
 			return NULL;
 		pthread_setspecific(ts->key, buf);
-		__ast_threadstorage_object_add(buf, init_size, file, function, line);
+		__ast_threadstorage_object_add(ts->key, init_size, file, function, line);
 	}
 
 	return buf;

Modified: branches/1.4/include/asterisk/utils.h
URL: http://svn.digium.com/view/asterisk/branches/1.4/include/asterisk/utils.h?view=diff&rev=135899&r1=135898&r2=135899
==============================================================================
--- branches/1.4/include/asterisk/utils.h (original)
+++ branches/1.4/include/asterisk/utils.h Tue Aug  5 22:02:59 2008
@@ -509,7 +509,7 @@
 #define ast_realloc(a,b)	realloc(a,b)
 #define ast_strdup(a)		strdup(a)
 #define ast_strndup(a,b)	strndup(a,b)
-#define ast_asprintf(a,b,c)	asprintf(a,b,c)
+#define ast_asprintf(a,b,...)	asprintf(a,b,__VA_ARGS__)
 #define ast_vasprintf(a,b,c)	vasprintf(a,b,c)
 
 #endif /* AST_DEBUG_MALLOC */




More information about the svn-commits mailing list