From fffaf0b978c54a79ff01bd5365fa5b35ca401863 Mon Sep 17 00:00:00 2001 From: seanbright Date: Wed, 8 Oct 2008 12:15:06 +0000 Subject: Keep up with shadow warnings. One day I'll actually enable this in the Makefile. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147457 f38db490-d61c-443f-a65b-d21fe96a405b --- cdr/cdr_adaptive_odbc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cdr/cdr_adaptive_odbc.c') diff --git a/cdr/cdr_adaptive_odbc.c b/cdr/cdr_adaptive_odbc.c index 244a0380c..edc01e7dd 100644 --- a/cdr/cdr_adaptive_odbc.c +++ b/cdr/cdr_adaptive_odbc.c @@ -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); -- cgit v1.2.3