prepare reduce nesting level in a couple of blocks by
inverting an if () statement (indentation change to be committed
separately).
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@26378
65c4cc65-6c06-0410-ace0-
fbb531ad65f3
case 2: /* Call back */
- if (!ast_strlen_zero(cid)) {
+ if (ast_strlen_zero(cid))
+ break;
+
ast_callerid_parse(cid, &name, &num);
while ((res > -1) && (res != 't')) {
switch(res) {
retries++;
if (retries > 3)
res = 't';
- break;
+ break;
- }
+ }
if (res == 't')
res = 0;
else if (res == '*')
res = -1;
}
- }
break;
case 1: /* Reply */
/* Send reply directly to sender */
- if (!ast_strlen_zero(cid)) {
+ if (ast_strlen_zero(cid))
+ break;
+
ast_callerid_parse(cid, &name, &num);
if (!num) {
if (option_verbose > 2)
}
}
res = 0;
- }
+
break;
}