mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
localize some variables
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25652 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
7
pbx.c
7
pbx.c
@@ -1691,15 +1691,16 @@ int ast_extension_state(struct ast_channel *c, const char *context, const char *
|
||||
void ast_hint_state_changed(const char *device)
|
||||
{
|
||||
struct ast_hint *hint;
|
||||
|
||||
AST_LIST_LOCK(&hints);
|
||||
|
||||
AST_LIST_TRAVERSE(&hints, hint, list) {
|
||||
struct ast_state_cb *cblist;
|
||||
char buf[AST_MAX_EXTENSION];
|
||||
char *parse;
|
||||
char *cur;
|
||||
int state;
|
||||
|
||||
AST_LIST_LOCK(&hints);
|
||||
|
||||
AST_LIST_TRAVERSE(&hints, hint, list) {
|
||||
ast_copy_string(buf, ast_get_extension_app(hint->exten), sizeof(buf));
|
||||
parse = buf;
|
||||
for (cur = strsep(&parse, "&"); cur; cur = strsep(&parse, "&")) {
|
||||
|
Reference in New Issue
Block a user