]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
1) Bugfix for debugging code
authorTilghman Lesher <tilghman@meg.abyt.es>
Wed, 6 Aug 2008 03:02:59 +0000 (03:02 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Wed, 6 Aug 2008 03:02:59 +0000 (03:02 +0000)
2) Reduce compiler warnings for another section of debugging code
(Closes issue #13237)

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@135899 65c4cc65-6c06-0410-ace0-fbb531ad65f3

include/asterisk/threadstorage.h
include/asterisk/utils.h

index 9021aa551f38ec33c3b79cf6b196a31697c45a4d..799a86332cc5fb4fa99476847f318e30f86c03ea 100644 (file)
@@ -159,7 +159,7 @@ void *__ast_threadstorage_get(struct ast_threadstorage *ts, size_t init_size, co
                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;
index 4b1a7f4173ea3ce4d1993798b9b07432ea41baca..4e4d9d5ee0e2d665d6d47919cad156ea90a5b3f4 100644 (file)
@@ -509,7 +509,7 @@ int _ast_vasprintf(char **ret, const char *file, int lineno, const char *func, c
 #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 */