summaryrefslogtreecommitdiff
path: root/main/pbx.c
diff options
context:
space:
mode:
authorJoshua Colp <jcolp@digium.com>2007-01-23 00:11:32 +0000
committerJoshua Colp <jcolp@digium.com>2007-01-23 00:11:32 +0000
commit21b53af31dcf5e881bf2e6617d7605653119c2f4 (patch)
tree2dedc24f8adfd522fcad82dd7e12e53bf19ff853 /main/pbx.c
parentdcdc6c0bc6d89a9f204dd637826e8b690ebf0206 (diff)
Cosmetic changes. Make main source files better conform to coding guidelines and standards. (issue #8679 reported by johann8384)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@51486 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'main/pbx.c')
-rw-r--r--main/pbx.c12
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;