aboutsummaryrefslogtreecommitdiffstats
path: root/cdr.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-22 20:11:15 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-06-22 20:11:15 +0000
commit899ce8fd6d00884844847794317e88d70eaec896 (patch)
treebffd10bbd58f5360e9fada3ea452b7a61dfac862 /cdr.c
parent08d0c132c31ede086cc473d943aff80c76f47719 (diff)
Misc formatting cleanups
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@3279 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr.c')
-rwxr-xr-xcdr.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/cdr.c b/cdr.c
index 0c6796daf..fb948f7e8 100755
--- a/cdr.c
+++ b/cdr.c
@@ -503,11 +503,10 @@ void ast_cdr_reset(struct ast_cdr *cdr, int post)
}
void ast_cdr_append(struct ast_cdr *cdr, struct ast_cdr *newcdr) {
- if(cdr) {
+ if (cdr) {
while(cdr->next)
cdr = cdr->next;
cdr->next = newcdr;
- } else
- ast_log(LOG_ERROR, "Can't append a CDR to NULL!\n");
-
+ } else
+ ast_log(LOG_ERROR, "Can't append a CDR to NULL!\n");
}