summaryrefslogtreecommitdiff
path: root/sql/log_event.cc
diff options
context:
space:
mode:
authorunknown <monty@work.mysql.com>2001-09-04 01:04:32 +0200
committerunknown <monty@work.mysql.com>2001-09-04 01:04:32 +0200
commit54e33e272d75345b09190052bb0c7d52cce56fc8 (patch)
treeaaf42ebc12881df70581f25e72e0a95304a405ae /sql/log_event.cc
parent5160501770aafc0b2b9ee287e5a8b7627b1b51bb (diff)
parent3b7bd02ebd175fd1e14e6e57e59e60af0a36f68f (diff)
downloadmariadb-git-54e33e272d75345b09190052bb0c7d52cce56fc8.tar.gz
Merge work.mysql.com:/home/bk/mysql
into work.mysql.com:/home/bk/mysql-4.0 Docs/manual.texi: Auto merged client/mysqldump.c: Auto merged libmysql/Makefile.am: Auto merged libmysql_r/Makefile.am: Auto merged myisam/mi_check.c: Auto merged sql/log_event.cc: Auto merged sql/sql_parse.cc: Auto merged
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r--sql/log_event.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc
index 64ad4cadf8e..ce0873f0be6 100644
--- a/sql/log_event.cc
+++ b/sql/log_event.cc
@@ -548,24 +548,24 @@ void Log_event::print_header(FILE* file)
void Log_event::print_timestamp(FILE* file, time_t* ts)
{
- struct tm tm_tmp;
+ struct tm tm_tmp, *res;
if (!ts)
{
ts = &when;
}
#ifdef MYSQL_SERVER
- localtime_r(ts,&tm_tmp);
+ res=localtime_r(ts,&tm_tmp);
#else
- localtime(ts);
+ res=localtime(ts);
#endif
fprintf(file,"%02d%02d%02d %2d:%02d:%02d",
- tm_tmp.tm_year % 100,
- tm_tmp.tm_mon+1,
- tm_tmp.tm_mday,
- tm_tmp.tm_hour,
- tm_tmp.tm_min,
- tm_tmp.tm_sec);
+ res->tm_year % 100,
+ res->tm_mon+1,
+ res->tm_mday,
+ res->tm_hour,
+ res->tm_min,
+ res->tm_sec);
}