search for: ast_threadstorage

Displaying 2 results from an estimated 2 matches for "ast_threadstorage".

2007 Jun 09
1
ast_dynamic_str_thread_build_va() is defined with 6 args but only called with 5 args??
...t_cli_command (fd=1, s=0x0) at cli.c:1979 #8 0x08073d0f in main (argc=135695685, argv=0x80471f4) at asterisk.c:1384 I've noticed that ast_dynamic_str_thread_build_va is defined in utils.c on line 969: int ast_dynamic_str_thread_build_va(struct ast_dynamic_str **buf, size_t max_len, struct ast_threadstorage *ts, int append, const char *fmt, va_list ap) and it's called in cli.c on line 69: res = ast_dynamic_str_thread_set_va(&buf, 0, &ast_cli_buf, fmt, ap); Most interesting is that the function is defined with 6 arguments and only appears to be called with 5(?). Is this correct? Fran...
2007 Jul 29
0
Asterisk 1.4.X support for Solaris 10?
...fd=1, s=0x0) at cli.c:1979 #8 0x08074127 in main (argc=135688218, argv=0x80471fc) at asterisk.c:1388 (gdb) q # The segmentation fault is caused by the call to vsnprintf in this function in utils.c: int ast_dynamic_str_thread_build_va(struct ast_dynamic_str **buf, size_t max_len, struct ast_threadstorage *ts, int append, const char *fmt, va_list ap) { int res; int offset = (append && (*buf)->len) ? strlen((*buf)->str) : 0; #if defined(DEBUG_THREADLOCALS) struct ast_dynamic_str *old_buf = *buf; #endif /* defined(DEBUG_THREADLOCALS) */ res = vsnprintf((...