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
This commit is contained in:
Joshua Colp
2007-01-23 00:11:32 +00:00
parent dcdc6c0bc6
commit 21b53af31d
23 changed files with 175 additions and 181 deletions

View File

@@ -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 */