Archived
14
0
Fork 0

move variable declarations to the beginning of the block

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@72456 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
rizzo 2007-06-28 19:01:43 +00:00
parent 0fbdb5844c
commit 86416cfc91

View file

@ -3199,10 +3199,11 @@ static int handle_stimulus_message(struct skinny_req *req, struct skinnysession
} }
break; break;
case STIMULUS_SPEEDDIAL: case STIMULUS_SPEEDDIAL:
{
struct skinny_speeddial *sd;
if (skinnydebug) if (skinnydebug)
ast_verbose("Received Stimulus: SpeedDial(%d)\n", instance); ast_verbose("Received Stimulus: SpeedDial(%d)\n", instance);
struct skinny_speeddial *sd;
if (!(sd = find_speeddial_by_instance(d, instance, 0))) { if (!(sd = find_speeddial_by_instance(d, instance, 0))) {
return 0; return 0;
} }
@ -3241,6 +3242,7 @@ static int handle_stimulus_message(struct skinny_req *req, struct skinnysession
break; break;
} }
} }
}
break; break;
case STIMULUS_HOLD: case STIMULUS_HOLD:
if (skinnydebug) if (skinnydebug)
@ -4283,14 +4285,15 @@ static int handle_message(struct skinny_req *req, struct skinnysession *s)
res = handle_ip_port_message(req, s); res = handle_ip_port_message(req, s);
break; break;
case KEYPAD_BUTTON_MESSAGE: case KEYPAD_BUTTON_MESSAGE:
if (skinnydebug) {
ast_verbose("Collected digit: [%d]\n", letohl(req->data.keypad.button));
struct skinny_device *d = s->device; struct skinny_device *d = s->device;
struct skinny_subchannel *sub; struct skinny_subchannel *sub;
int lineInstance; int lineInstance;
int callReference; int callReference;
if (skinnydebug)
ast_verbose("Collected digit: [%d]\n", letohl(req->data.keypad.button));
lineInstance = letohl(req->data.keypad.lineInstance); lineInstance = letohl(req->data.keypad.lineInstance);
callReference = letohl(req->data.keypad.callReference); callReference = letohl(req->data.keypad.callReference);
@ -4322,6 +4325,7 @@ static int handle_message(struct skinny_req *req, struct skinnysession *s)
d->exten[strlen(d->exten)+1] = '\0'; d->exten[strlen(d->exten)+1] = '\0';
} else } else
res = handle_keypad_button_message(req, s); res = handle_keypad_button_message(req, s);
}
break; break;
case STIMULUS_MESSAGE: case STIMULUS_MESSAGE:
res = handle_stimulus_message(req, s); res = handle_stimulus_message(req, s);