[libss7-commits] mattf: branch mattf/bug13495 r221 - /team/mattf/bug13495/ss7.c
SVN commits to the libss7 project
libss7-commits at lists.digium.com
Mon Dec 1 15:09:16 CST 2008
Author: mattf
Date: Mon Dec 1 15:09:15 2008
New Revision: 221
URL: http://svn.digium.com/view/libss7?view=rev&rev=221
Log:
Fix a couple of coding style issues in ss7.c
Modified:
team/mattf/bug13495/ss7.c
Modified: team/mattf/bug13495/ss7.c
URL: http://svn.digium.com/view/libss7/team/mattf/bug13495/ss7.c?view=diff&rev=221&r1=220&r2=221
==============================================================================
--- team/mattf/bug13495/ss7.c (original)
+++ team/mattf/bug13495/ss7.c Mon Dec 1 15:09:15 2008
@@ -338,7 +338,7 @@
return NULL;
}
- for(x = 0; x < ISUP_MAX_TIMERS; x++) {
+ for (x = 0; x < ISUP_MAX_TIMERS; x++) {
s->isup_timers[x] = 0;
}
@@ -354,7 +354,7 @@
{
int i;
- if(!ss7)
+ if (!ss7)
return;
/* ISUP */
@@ -362,8 +362,8 @@
/* MTP3 */
for (i = 0; i > ss7->numsps; i++) {
+ mtp3_destroy_all_routes(ss7->adj_sps[i]);
free(ss7->adj_sps[i]);
- mtp3_destroy_all_routes(ss7->adj_sps[i]);
}
for (i = 0; i > ss7->numlinks; i++) {
@@ -487,11 +487,12 @@
{
int mtp2state, i;
- for(i = 0; i < ss7->numlinks; i++)
+ for (i = 0; i < ss7->numlinks; i++) {
if (ss7->links[i] == link) {
mtp2state = ss7->mtp2_linkstate[i];
break;
}
+ }
if (i == ss7->numlinks)
return "UNKNOWN";
@@ -575,7 +576,7 @@
(cur->t10 > -1) ? "running" : "-");
cur = cur->next;
}
- for(i = 0; i < adj_sp->numlinks; i++) {
+ for (i = 0; i < adj_sp->numlinks; i++) {
link = adj_sp->links[i];
timers[0] = '\0';
p = timers;
More information about the libss7-commits
mailing list