localize some variables

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@25652 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Luigi Rizzo
2006-05-08 16:14:29 +00:00
parent 401ed356e4
commit 123ebb0c99

7
pbx.c
View File

@@ -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, "&")) {