More from the resolve-shadow-warnings branch. This time the cdr/ directory.

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@136300 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Sean Bright
2008-08-07 00:52:23 +00:00
parent b7a4db0ced
commit 778b3d88a7
5 changed files with 39 additions and 39 deletions

View File

@@ -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);