mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 20:20:07 +00:00
Misc formatting cleanups
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3279 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
7
cdr.c
7
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");
|
||||
}
|
||||
|
Reference in New Issue
Block a user