From 2a4f9f7181042e2f2bd7fd2044aed706b23f8c3d Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Fri, 27 Mar 2009 16:21:10 +0000 Subject: Change global_app_buf to ast_str_thread_global_buf. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@184693 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- apps/app_dumpchan.c | 2 +- apps/app_queue.c | 2 +- apps/app_voicemail.c | 2 +- include/asterisk/app.h | 2 +- main/app.c | 2 +- main/cli.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/apps/app_dumpchan.c b/apps/app_dumpchan.c index c598bee75..739fe241b 100644 --- a/apps/app_dumpchan.c +++ b/apps/app_dumpchan.c @@ -149,7 +149,7 @@ static int serialize_showchan(struct ast_channel *c, char *buf, size_t size) static int dumpchan_exec(struct ast_channel *chan, void *data) { - struct ast_str *vars = ast_str_thread_get(&global_app_buf, 16); + struct ast_str *vars = ast_str_thread_get(&ast_str_thread_global_buf, 16); char info[1024]; int level = 0; static char *line = "================================================================================"; diff --git a/apps/app_queue.c b/apps/app_queue.c index 4da2eac72..260745d65 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -2319,7 +2319,7 @@ static void do_hang(struct callattempt *o) /*! \brief convert "\n" to "\nVariable: " ready for manager to use */ static char *vars2manager(struct ast_channel *chan, char *vars, size_t len) { - struct ast_str *buf = ast_str_thread_get(&global_app_buf, len + 1); + struct ast_str *buf = ast_str_thread_get(&ast_str_thread_global_buf, len + 1); char *tmp; if (pbx_builtin_serialize_variables(chan, &buf)) { diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index b2ec1e081..7d3b6e6b7 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -10267,7 +10267,7 @@ static const char *substitute_escapes(const char *value) char *current; /* Add 16 for fudge factor */ - struct ast_str *str = ast_str_thread_get(&global_app_buf, strlen(value) + 16); + struct ast_str *str = ast_str_thread_get(&ast_str_thread_global_buf, strlen(value) + 16); ast_str_reset(str); diff --git a/include/asterisk/app.h b/include/asterisk/app.h index 01da28381..8e0d86952 100644 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -32,7 +32,7 @@ struct ast_flags64; extern "C" { #endif -AST_THREADSTORAGE_EXTERNAL(global_app_buf); +AST_THREADSTORAGE_EXTERNAL(ast_str_thread_global_buf); /* IVR stuff */ diff --git a/main/app.c b/main/app.c index 5acde1baa..7b79915ea 100644 --- a/main/app.c +++ b/main/app.c @@ -52,7 +52,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$") #include "asterisk/linkedlists.h" #include "asterisk/threadstorage.h" -AST_THREADSTORAGE_PUBLIC(global_app_buf); +AST_THREADSTORAGE_PUBLIC(ast_str_thread_global_buf); #define MAX_OTHER_FORMATS 10 diff --git a/main/cli.c b/main/cli.c index 0bf8151e6..d6ee56adf 100644 --- a/main/cli.c +++ b/main/cli.c @@ -1259,7 +1259,7 @@ static char *handle_showchan(struct ast_cli_entry *e, int cmd, struct ast_cli_ar { struct ast_channel *c=NULL; struct timeval now; - struct ast_str *out = ast_str_thread_get(&global_app_buf, 16); + struct ast_str *out = ast_str_thread_get(&ast_str_thread_global_buf, 16); char cdrtime[256]; char nf[256], wf[256], rf[256]; long elapsed_seconds=0; -- cgit v1.2.3