mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
Merged revisions 69392 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r69392 | kpfleming | 2007-06-14 16:50:40 -0500 (Thu, 14 Jun 2007) | 2 lines use ast_localtime() in every place localtime_r() was being used ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69405 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -931,7 +931,7 @@ void ast_log(int level, const char *file, int line, const char *function, const
|
||||
|
||||
/* Create our date/time */
|
||||
time(&t);
|
||||
localtime_r(&t, &tm);
|
||||
ast_localtime(&t, &tm, NULL);
|
||||
strftime(logmsg->date, sizeof(logmsg->date), dateformat, &tm);
|
||||
|
||||
/* Copy over data */
|
||||
@@ -1022,7 +1022,7 @@ void ast_verbose(const char *fmt, ...)
|
||||
char *datefmt;
|
||||
|
||||
time(&t);
|
||||
localtime_r(&t, &tm);
|
||||
ast_localtime(&t, &tm, NULL);
|
||||
strftime(date, sizeof(date), dateformat, &tm);
|
||||
datefmt = alloca(strlen(date) + 3 + strlen(fmt) + 1);
|
||||
sprintf(datefmt, "[%s] %s", date, fmt);
|
||||
|
Reference in New Issue
Block a user