projects
/
lcr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' of ssh://jolly@www.misdn.org/var/git/lcr
[lcr.git]
/
cause.c
diff --git
a/cause.c
b/cause.c
index
c021f21
..
3b9ae8d
100644
(file)
--- a/
cause.c
+++ b/
cause.c
@@
-340,8
+340,7
@@
char *get_isdn_cause(int cause, int location, int type)
if (cause<0 || cause>127)
cause = 0;
if (cause<0 || cause>127)
cause = 0;
- switch(type)
- {
+ switch(type) {
case DISPLAY_CAUSE_NUMBER:
SPRINT(result, "Cause %d", cause);
break;
case DISPLAY_CAUSE_NUMBER:
SPRINT(result, "Cause %d", cause);
break;
@@
-383,37
+382,30
@@
char *get_isdn_cause(int cause, int location, int type)
*/
void collect_cause(int *multicause, int *multilocation, int newcause, int newlocation)
{
*/
void collect_cause(int *multicause, int *multilocation, int newcause, int newlocation)
{
- if (newcause == CAUSE_REJECTED) /* call rejected */
- {
+ if (newcause == CAUSE_REJECTED) { /* call rejected */
*multicause = newcause;
*multilocation = newlocation;
} else
*multicause = newcause;
*multilocation = newlocation;
} else
- if (newcause==CAUSE_NORMAL && *multicause!=CAUSE_REJECTED) /* reject via hangup */
- {
+ if (newcause==CAUSE_NORMAL && *multicause!=CAUSE_REJECTED) { /* reject via hangup */
*multicause = newcause;
*multilocation = newlocation;
} else
*multicause = newcause;
*multilocation = newlocation;
} else
- if (newcause==CAUSE_BUSY && *multicause!=CAUSE_REJECTED && *multicause!=CAUSE_NORMAL) /* busy */
- {
+ if (newcause==CAUSE_BUSY && *multicause!=CAUSE_REJECTED && *multicause!=CAUSE_NORMAL) { /* busy */
*multicause = newcause;
*multilocation = newlocation;
} else
*multicause = newcause;
*multilocation = newlocation;
} else
- if (newcause==CAUSE_OUTOFORDER && *multicause!=CAUSE_BUSY && *multicause!=CAUSE_REJECTED && *multicause!=CAUSE_NORMAL) /* no L1 */
- {
+ if (newcause==CAUSE_OUTOFORDER && *multicause!=CAUSE_BUSY && *multicause!=CAUSE_REJECTED && *multicause!=CAUSE_NORMAL) { /* no L1 */
*multicause = newcause;
*multilocation = newlocation;
} else
*multicause = newcause;
*multilocation = newlocation;
} else
- if (newcause!=CAUSE_NOUSER && *multicause!=CAUSE_OUTOFORDER && *multicause!=CAUSE_BUSY && *multicause!=CAUSE_REJECTED && *multicause!=CAUSE_NORMAL) /* anything but not 18 */
- {
+ if (newcause!=CAUSE_NOUSER && *multicause!=CAUSE_OUTOFORDER && *multicause!=CAUSE_BUSY && *multicause!=CAUSE_REJECTED && *multicause!=CAUSE_NORMAL) { /* anything but not 18 */
*multicause = newcause;
*multilocation = newlocation;
} else
*multicause = newcause;
*multilocation = newlocation;
} else
- if (newcause==CAUSE_NOUSER && *multicause==CAUSE_NOUSER) /* cause 18, use the location */
- {
+ if (newcause==CAUSE_NOUSER && *multicause==CAUSE_NOUSER) { /* cause 18, use the location */
*multilocation = newlocation;
} else
*multilocation = newlocation;
} else
- if (*multicause==0) /* no cause yet, use newcause (should be 18) */
- {
+ if (*multicause==0) { /* no cause yet, use newcause (should be 18) */
*multicause = newcause;
*multilocation = newlocation;
}
*multicause = newcause;
*multilocation = newlocation;
}