Fix compiler warnings.
authorHiroshi Inoue <h-inoue@dream.email.ne.jp>
Sat, 8 Oct 2016 12:39:42 +0000 (21:39 +0900)
committerHiroshi Inoue <h-inoue@dream.email.ne.jp>
Sat, 8 Oct 2016 12:39:42 +0000 (21:39 +0900)
execute.c
psqlodbc.c
psqlodbc.h

index c8a70ada864a79a1e1c80bbbcdfeec38f66c5a0a..d568219dd0aea72eaea630c5f1cd4a843cf4ea38 100644 (file)
--- 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;
index 4bc0c464e660ac258b1bd6bc56c9f59d5c507dd5..9b70f1b343ef6443c3e8ac9a13d217a0ee640504 100644 (file)
@@ -22,6 +22,7 @@
 #include "dlg_specific.h"
 #include "environ.h"
 #include "misc.h"
+#include <string.h>
 
 #ifdef WIN32
 #include "loadlib.h"
index fc07c460ac7e2bff0c47e9c8049e96d547a4f3c2..883154b86cf57e322de5e02396a68eba37f951c7 100644 (file)
@@ -37,6 +37,8 @@
 #else  /* _DEBUG */
 #include <stdlib.h>
 #endif /* _DEBUG */
+#else  /* WIN32 */
+#include <stdlib.h>
 #endif /* WIN32 */
 
 #ifdef _MEMORY_DEBUG_