From 05bdcdaa4b5948e07fe88462141cfaa48000b844 Mon Sep 17 00:00:00 2001 From: Amy Gale Ruth Bowersox Date: Sat, 7 Dec 2019 19:48:44 -0700 Subject: [PATCH] fixed compile errorsx --- src/ep_init.c | 4 ++-- src/ep_init.h | 4 ++-- src/log.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ep_init.c b/src/ep_init.c index a163039..a61dd9f 100644 --- a/src/ep_init.c +++ b/src/ep_init.c @@ -6,8 +6,8 @@ #include "ep_init.h" #include "ep_util.h" -PCSTR Mod_UPIWIN = "upiwin"; /* name of the primary UPIWIN module */ -PCSTR Mod_UPIWIN_tmp = "upiwin_tmp"; /* name of the temporary UPIWIN module */ +const PCSTR Mod_UPIWIN = "upiwin"; /* name of the primary UPIWIN module */ +const PCSTR Mod_UPIWIN_tmp = "upiwin_tmp"; /* name of the temporary UPIWIN module */ static wchar_t *python_name = NULL; /* location of the Python executable */ diff --git a/src/ep_init.h b/src/ep_init.h index bd376ab..3ef391c 100644 --- a/src/ep_init.h +++ b/src/ep_init.h @@ -3,8 +3,8 @@ #include "wintype.h" -extern PCSTR Mod_UPIWIN; -extern PCSTR Mod_UPIWIN_tmp; +extern const PCSTR Mod_UPIWIN; +extern const PCSTR Mod_UPIWIN_tmp; extern HRESULT Epython_setup(void); diff --git a/src/log.c b/src/log.c index 3035f88..a239fc9 100644 --- a/src/log.c +++ b/src/log.c @@ -24,7 +24,7 @@ void Log(int level, const char *format, ...) gettimeofday(&tv, NULL); localtime_r(&(tv.tv_sec), &tm); strftime(timestamp, 32, "%F %T", &tm); - fprintf(logfile ? logfile : stdout, "%s.%06u %s %s\n", timestamp, tv.tv_usec, severities[level], buf); + fprintf(logfile ? logfile : stdout, "%s.%06ld %s %s\n", timestamp, tv.tv_usec, severities[level], buf); } void Log_assert_failed(const char *test, const char *file, int line)