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/cdr.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/cdr.c')
-rw-r--r-- | main/cdr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/main/cdr.c b/main/cdr.c index 4920612f1..e8eebe10f 100644 --- a/main/cdr.c +++ b/main/cdr.c @@ -288,7 +288,7 @@ int ast_cdr_setvar(struct ast_cdr *cdr, const char *name, const char *value, int struct varshead *headp; int x; - for(x = 0; cdr_readonly_vars[x]; x++) { + for (x = 0; cdr_readonly_vars[x]; x++) { if (!strcasecmp(name, cdr_readonly_vars[x])) { ast_log(LOG_ERROR, "Attempt to set the '%s' read-only variable!.\n", name); return -1; @@ -493,7 +493,7 @@ int ast_cdr_disposition(struct ast_cdr *cdr, int cause) int res = 0; for (; cdr; cdr = cdr->next) { - switch(cause) { + switch (cause) { case AST_CAUSE_BUSY: ast_cdr_busy(cdr); break; @@ -624,7 +624,7 @@ char *ast_cdr_disp2str(int disposition) /*! Converts AMA flag to printable string */ char *ast_cdr_flags2str(int flag) { - switch(flag) { + switch (flag) { case AST_CDR_OMIT: return "OMIT"; case AST_CDR_BILLING: @@ -945,7 +945,7 @@ static void *do_cdr(void *data) int schedms; int numevents = 0; - for(;;) { + for (;;) { struct timeval now; schedms = ast_sched_wait(sched); /* this shouldn't happen, but provide a 1 second default just in case */ |