From 1bc32ee574514b3252151cac9fedf6d817549b7c Mon Sep 17 00:00:00 2001 From: Hiroshi Inoue Date: Sat, 8 Oct 2016 21:39:42 +0900 Subject: [PATCH] Fix compiler warnings. --- execute.c | 4 ++-- psqlodbc.c | 1 + psqlodbc.h | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/execute.c b/execute.c index c8a70ad..d568219 100644 --- a/execute.c +++ b/execute.c @@ -824,7 +824,7 @@ next_name_token(const char *s, size_t *len) const char *p; s += *len; - while (*s && isspace(*s)) ++s; + while (*s && isspace((UCHAR) *s)) ++s; switch (*s) { case '\0': @@ -841,7 +841,7 @@ next_name_token(const char *s, size_t *len) break; default: p = s; - while (*p && !isspace(*p) && *p != '.') ++p; + while (*p && !isspace((UCHAR) *p) && *p != '.') ++p; if (p) { *len = p - s; return s; diff --git a/psqlodbc.c b/psqlodbc.c index 4bc0c46..9b70f1b 100644 --- a/psqlodbc.c +++ b/psqlodbc.c @@ -22,6 +22,7 @@ #include "dlg_specific.h" #include "environ.h" #include "misc.h" +#include #ifdef WIN32 #include "loadlib.h" diff --git a/psqlodbc.h b/psqlodbc.h index fc07c46..883154b 100644 --- a/psqlodbc.h +++ b/psqlodbc.h @@ -37,6 +37,8 @@ #else /* _DEBUG */ #include #endif /* _DEBUG */ +#else /* WIN32 */ +#include #endif /* WIN32 */ #ifdef _MEMORY_DEBUG_ -- 2.39.5