dect
/
asterisk
Archived
13
0
Fork 0

Change global_app_buf to ast_str_thread_global_buf.

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@184693 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
russell 2009-03-27 16:21:10 +00:00
parent b44de56f70
commit 4bc54633d7
6 changed files with 6 additions and 6 deletions

View File

@ -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 = "================================================================================";

View File

@ -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)) {

View File

@ -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);

View File

@ -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 */

View File

@ -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

View File

@ -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;