mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-18 18:58:22 +00:00
Keep up with shadow warnings. One day I'll actually enable this in the Makefile.
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@147457 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -373,9 +373,9 @@ static int odbc_log(struct ast_cdr *cdr)
|
||||
|
||||
/* Check if we have a similarly named variable */
|
||||
if (datefield && tableptr->usegmtime) {
|
||||
struct timeval tv = (datefield == 1) ? cdr->start : (datefield == 2) ? cdr->answer : cdr->end;
|
||||
struct timeval date_tv = (datefield == 1) ? cdr->start : (datefield == 2) ? cdr->answer : cdr->end;
|
||||
struct ast_tm tm = { 0, };
|
||||
ast_localtime(&tv, &tm, "UTC");
|
||||
ast_localtime(&date_tv, &tm, "UTC");
|
||||
ast_strftime(colbuf, sizeof(colbuf), "%Y-%m-%d %H:%M:%S", &tm);
|
||||
} else {
|
||||
ast_cdr_getvar(cdr, entry->cdrname, &colptr, colbuf, sizeof(colbuf), 0, datefield ? 0 : 1);
|
||||
|
Reference in New Issue
Block a user