[svn-commits] qwell: tools/trunk r4827 - /tools/trunk/dahdi_cfg.c
SVN commits to the Digium repositories
svn-commits at lists.digium.com
Mon Aug 25 11:12:39 CDT 2008
Author: qwell
Date: Mon Aug 25 11:12:39 2008
New Revision: 4827
URL: http://svn.digium.com/view/dahdi?view=rev&rev=4827
Log:
Fix more crazy formatting
Modified:
tools/trunk/dahdi_cfg.c
Modified: tools/trunk/dahdi_cfg.c
URL: http://svn.digium.com/view/dahdi/tools/trunk/dahdi_cfg.c?view=diff&rev=4827&r1=4826&r2=4827
==============================================================================
--- tools/trunk/dahdi_cfg.c (original)
+++ tools/trunk/dahdi_cfg.c Mon Aug 25 11:12:39 2008
@@ -492,7 +492,7 @@
res = apply_channels(chans, args);
if (res <= 0)
return -1;
- for (x=1;x<DAHDI_MAX_CHANNELS;x++)
+ for (x=1;x<DAHDI_MAX_CHANNELS;x++) {
if (chans[x]) {
if (slineno[x]) {
error("Channel %d already configured as '%s' at line %d\n", x, sig[x], slineno[x]);
@@ -617,6 +617,7 @@
fprintf(stderr, "Huh? (%s)\n", keyword);
}
}
+ }
return 0;
}
@@ -1148,7 +1149,10 @@
if (chans[x]) {
p.radpar = DAHDI_RADPAR_NUMTONES;
if (ind_ioctl(x,fd,DAHDI_RADIO_GETPARAM,&p) == -1)
- n = 0; else n = p.data;
+ n = 0;
+ else
+ n = p.data;
+
if (n)
{
p.radpar = DAHDI_RADPAR_INITTONE;
@@ -1290,12 +1294,16 @@
if (ae[x].echocan[0]) {
printf(" (Echo Canceler: %s)", ae[x].echocan);
}
- for (y=1;y<DAHDI_MAX_CHANNELS;y++)
+ for (y=1;y<DAHDI_MAX_CHANNELS;y++) {
if (cc[y].master == x) {
printf("%s%02d", ps++ ? " " : " (Slaves: ", y);
}
+ }
}
- if (ps) printf(")\n"); else printf("\n");
+ if (ps)
+ printf(")\n");
+ else
+ printf("\n");
} else
if (cc[x].sigtype) configs++;
}
@@ -1613,9 +1621,10 @@
printf("Loading tone zone for %s\n", zonestoload[x]);
fflush(stdout);
}
- if (tone_zone_register(fd, zonestoload[x]))
+ if (tone_zone_register(fd, zonestoload[x])) {
if (errno != EBUSY)
error("Unable to register tone zone '%s'\n", zonestoload[x]);
+ }
}
if (debug & DEBUG_APPLY) {
printf("Doing startup\n");
More information about the svn-commits
mailing list