Eliminate a bunch of shadow warnings.
[asterisk/asterisk.git] / channels / chan_agent.c
index 4ce43a5..8361540 100644 (file)
@@ -778,7 +778,6 @@ static int agent_indicate(struct ast_channel *ast, int condition, const void *da
        ast_mutex_lock(&p->lock);
        if (p->chan && !ast_check_hangup(p->chan)) {
                while (ast_channel_trylock(p->chan)) {
-                       int res;
                        if ((res = ast_channel_unlock(ast))) {
                                ast_log(LOG_ERROR, "chan_agent bug! Channel was not locked upon entry to agent_indicate: %s\n", strerror(res));
                                ast_mutex_unlock(&p->lock);