From 4290e664c9253b0d126ae91566e05c78f58c13f3 Mon Sep 17 00:00:00 2001 From: prabatuty Date: Mon, 2 May 2011 17:22:01 +0000 Subject: [PATCH] windows changes --- include/Debug.h | 2 +- src/storage/Debug.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/include/Debug.h b/include/Debug.h index e39b171e..dd3326ff 100644 --- a/include/Debug.h +++ b/include/Debug.h @@ -39,7 +39,7 @@ int printStackTrace(); #ifdef WINNT DllExport int printError1(DbRetVal val, char* fname, int lno, char *format, ...); #else -extern int printError1(DbRetVal val, char* fname, int lno, const char *format, ...); +extern int printError1(DbRetVal val, char* fname, int lno, char *format, ...); #endif #define printError(a, ...) printError1(a, __FILE__, __LINE__, __VA_ARGS__) diff --git a/src/storage/Debug.cxx b/src/storage/Debug.cxx index 6878a11b..5b246161 100644 --- a/src/storage/Debug.cxx +++ b/src/storage/Debug.cxx @@ -70,7 +70,7 @@ int printError1(DbRetVal val, char* fname, int lno, char *format, ...) #else os::gettimeofday(&timeStamp); struct tm *tempTm = os::localtime(&timeStamp.tv_sec); - trftime(tempBuffer, 64, "%d/%m/%Y %H:%M:%S", tempTm); + strftime(tempBuffer, 64, "%d/%m/%Y %H:%M:%S", tempTm); #endif if (strncasecmp(Conf::config.getStderrFile(),"stderr", 6) == 0) fd = 2; -- 2.11.4.GIT