diff options
author | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-23 00:11:32 +0000 |
---|---|---|
committer | file <file@f38db490-d61c-443f-a65b-d21fe96a405b> | 2007-01-23 00:11:32 +0000 |
commit | cd15e6156e2c86dc13f28f31da59b58df7a1966e (patch) | |
tree | 2dedc24f8adfd522fcad82dd7e12e53bf19ff853 /main/pbx.c | |
parent | 363b34c1e91602d96708183a0ac50874bac93c4b (diff) |
Cosmetic changes. Make main source files better conform to coding guidelines and standards. (issue #8679 reported by johann8384)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@51486 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'main/pbx.c')
-rw-r--r-- | main/pbx.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/main/pbx.c b/main/pbx.c index c83e9638d..a3a0ebe37 100644 --- a/main/pbx.c +++ b/main/pbx.c @@ -1460,7 +1460,7 @@ static void pbx_substitute_variables_helper_full(struct ast_channel *c, struct v nextexp = NULL; nextthing = strchr(whereweare, '$'); if (nextthing) { - switch(nextthing[1]) { + switch (nextthing[1]) { case '{': nextvar = nextthing; pos = nextvar - whereweare; @@ -1564,7 +1564,7 @@ static void pbx_substitute_variables_helper_full(struct ast_channel *c, struct v needsub = 0; /* Find the end of it */ - while(brackets && *vare) { + while (brackets && *vare) { if ((vare[0] == '$') && (vare[1] == '[')) { needsub++; brackets++; @@ -2403,7 +2403,7 @@ static int __ast_pbx_run(struct ast_channel *c) if (c->cdr && ast_opt_end_cdr_before_h_exten) ast_cdr_end(c->cdr); set_ext_pri(c, "h", 1); - while(ast_exists_extension(c, c->context, c->exten, c->priority, c->cid.cid_num)) { + while (ast_exists_extension(c, c->context, c->exten, c->priority, c->cid.cid_num)) { if ((res = ast_spawn_extension(c, c->context, c->exten, c->priority, c->cid.cid_num))) { /* Something bad happened, or a hangup has been requested. */ if (option_debug) @@ -4539,7 +4539,7 @@ static int ext_strncpy(char *dst, const char *src, int len) int count=0; while (*src && (count < len - 1)) { - switch(*src) { + switch (*src) { case ' ': /* otherwise exten => [a-b],1,... doesn't work */ /* case '-': */ @@ -4941,7 +4941,7 @@ int ast_pbx_outgoing_exten(const char *type, int format, void *data, int timeout if (option_verbose > 3) ast_verbose(VERBOSE_PREFIX_4 "Channel %s was never answered.\n", chan->name); - if(chan->cdr) { /* update the cdr */ + if (chan->cdr) { /* update the cdr */ /* here we update the status of the call, which sould be busy. * if that fails then we set the status to failed */ if (ast_cdr_disposition(chan->cdr, chan->hangupcause)) @@ -5073,7 +5073,7 @@ int ast_pbx_outgoing_app(const char *type, int format, void *data, int timeout, ast_log(LOG_WARNING, "%s already has a call record??\n", chan->name); } else { chan->cdr = ast_cdr_alloc(); /* allocate a cdr for the channel */ - if(!chan->cdr) { + if (!chan->cdr) { /* allocation of the cdr failed */ free(chan->pbx); res = -1; |