From: Hiroshi Inoue Date: Mon, 18 Feb 2002 05:54:50 +0000 (+0000) Subject: Remove compile warnings in multibute mode. X-Git-Tag: REL7_3~2118 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c03e7fbadc4526487c34b33c6cb796c9a42dc25e;p=postgresql Remove compile warnings in multibute mode. --- diff --git a/src/interfaces/odbc/multibyte.c b/src/interfaces/odbc/multibyte.c index b19af2764c..d10c575445 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 43870458e0..c171c68fbd 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);