From: Joshua Colp Date: Tue, 16 Oct 2007 14:27:27 +0000 (+0000) Subject: Permit building under DEBUG_THREADLOCALS. Thanks snuff. X-Git-Tag: 1.6.0-beta1~3^2~1179 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=c4230bb28f04ecc1d393091bde6b5bd0a88a2587;p=thirdparty%2Fasterisk.git Permit building under DEBUG_THREADLOCALS. Thanks snuff. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@85820 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/threadstorage.c b/main/threadstorage.c index 7de7dad2b7..6f483e519c 100644 --- a/main/threadstorage.c +++ b/main/threadstorage.c @@ -160,6 +160,7 @@ static char *handle_cli_threadstorage_show_summary(struct ast_cli_entry *e, int unsigned int count; AST_LIST_ENTRY(file) entry; } *file; + AST_LIST_HEAD_NOLOCK_STATIC(file_summary, file); switch (cmd) { case CLI_INIT: @@ -176,8 +177,6 @@ static char *handle_cli_threadstorage_show_summary(struct ast_cli_entry *e, int if (a->argc > 4) return CLI_SHOWUSAGE; - AST_LIST_HEAD_NOLOCK_STATIC(file_summary, file); - if (a->argc > 3) fn = a->argv[3];