aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/odbc/multibyte.c4
-rw-r--r--src/interfaces/odbc/multibyte.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/interfaces/odbc/multibyte.c b/src/interfaces/odbc/multibyte.c
index b19af2764c0..d10c5754455 100644
--- a/src/interfaces/odbc/multibyte.c
+++ b/src/interfaces/odbc/multibyte.c
@@ -15,7 +15,7 @@ int multibyte_status; /* Multibyte Odds and ends character. */
unsigned char *
-multibyte_strchr(unsigned char *s, unsigned char c)
+multibyte_strchr(const unsigned char *s, unsigned char c)
{
int mb_st = 0,
i = 0;
@@ -56,7 +56,7 @@ multibyte_strchr(unsigned char *s, unsigned char c)
#ifdef _DEBUG
qlog("i = %d\n", i);
#endif
- return (s + i);
+ return (char *) (s + i);
}
diff --git a/src/interfaces/odbc/multibyte.h b/src/interfaces/odbc/multibyte.h
index 43870458e0d..c171c68fbd3 100644
--- a/src/interfaces/odbc/multibyte.h
+++ b/src/interfaces/odbc/multibyte.h
@@ -36,4 +36,4 @@ extern int multibyte_status; /* Multibyte charcter status. */
void multibyte_init(void);
unsigned char *check_client_encoding(unsigned char *str);
int multibyte_char_check(unsigned char s);
-unsigned char *multibyte_strchr(unsigned char *s, unsigned char c);
+unsigned char *multibyte_strchr(const unsigned char *s, unsigned char c);