aboutsummaryrefslogtreecommitdiffstats
path: root/cdr/cdr_tds.c
diff options
context:
space:
mode:
authorseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-07 00:52:23 +0000
committerseanbright <seanbright@f38db490-d61c-443f-a65b-d21fe96a405b>2008-08-07 00:52:23 +0000
commit4965ac5e3659bb6bbaaf6470979caeb0b85fb6da (patch)
treece48e87a87be1a1f3a282b73097a36a25d77b39d /cdr/cdr_tds.c
parent71107a3e7c5fc6fa4ca8ef387c4f0478f57b9d62 (diff)
More from the resolve-shadow-warnings branch. This time the cdr/ directory.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@136300 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr/cdr_tds.c')
-rw-r--r--cdr/cdr_tds.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/cdr/cdr_tds.c b/cdr/cdr_tds.c
index 8654c80d5..750895d0e 100644
--- a/cdr/cdr_tds.c
+++ b/cdr/cdr_tds.c
@@ -265,12 +265,12 @@ static char *anti_injection(const char *str, int len)
return buf;
}
-static void get_date(char *dateField, size_t len, struct timeval tv)
+static void get_date(char *dateField, size_t len, struct timeval when)
{
/* To make sure we have date variable if not insert null to SQL */
if (!ast_tvzero(tv)) {
struct ast_tm tm;
- ast_localtime(&tv, &tm, NULL);
+ ast_localtime(&when, &tm, NULL);
ast_strftime(dateField, len, "'" DATE_FORMAT "'", &tm);
} else {
ast_copy_string(dateField, "null", len);