aboutsummaryrefslogtreecommitdiffstats
path: root/main/indications.c
diff options
context:
space:
mode:
authorfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-11 18:27:47 +0000
committerfile <file@f38db490-d61c-443f-a65b-d21fe96a405b>2008-02-11 18:27:47 +0000
commitadf32284d786b12a252f5feb0f67a9bb65117b48 (patch)
tree13b41c4dbe69fdfe18fe8f5d26befdad2bc40b7e /main/indications.c
parent74b3690774ea1d6c1150b7cc9bd40e8181e102c8 (diff)
Just some minor coding style cleanup...
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@103318 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/indications.c')
-rw-r--r--main/indications.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/main/indications.c b/main/indications.c
index e555d0357..2bb3e440e 100644
--- a/main/indications.c
+++ b/main/indications.c
@@ -165,7 +165,7 @@ static int playtones_generator(struct ast_channel *chan, void *data, int len, in
ps->v3_2 = pi->init_v3_2;
ps->oldnpos = ps->npos;
}
- for (x=0;x<len/2;x++) {
+ for (x = 0; x < len/2; x++) {
ps->v1_1 = ps->v2_1;
ps->v2_1 = ps->v3_1;
ps->v3_1 = (pi->fac1 * ps->v2_1 >> 15) - ps->v1_1;
@@ -233,7 +233,7 @@ int ast_playtones_start(struct ast_channel *chan, int vol, const char *playlst,
separator = ",";
s = strsep(&stringp,separator);
while (s && *s) {
- int freq1, freq2, time, modulate=0, midinote=0;
+ int freq1, freq2, time, modulate = 0, midinote = 0;
if (s[0]=='!')
s++;
@@ -533,7 +533,7 @@ int ast_register_indication(struct ind_tone_zone *zone, const char *indication,
AST_RWLIST_WRLOCK(&tone_zones);
for (ps=NULL,ts=zone->tones; ts; ps=ts,ts=ts->next) {
- if (strcasecmp(indication,ts->name)==0) {
+ if (!strcasecmp(indication,ts->name)) {
/* indication already there, replace */
ast_free((void*)ts->name);
ast_free((void*)ts->data);
@@ -573,7 +573,7 @@ int ast_unregister_indication(struct ind_tone_zone *zone, const char *indication
AST_RWLIST_WRLOCK(&tone_zones);
ts = zone->tones;
while (ts) {
- if (strcasecmp(indication,ts->name)==0) {
+ if (!strcasecmp(indication,ts->name)) {
/* indication found */
tmp = ts->next;
if (ps)