mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-15 00:41:02 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user