diff options
author | Hiroshi Inoue <inoue@tpf.co.jp> | 2002-02-18 05:54:50 +0000 |
---|---|---|
committer | Hiroshi Inoue <inoue@tpf.co.jp> | 2002-02-18 05:54:50 +0000 |
commit | c03e7fbadc4526487c34b33c6cb796c9a42dc25e (patch) | |
tree | 908f7863252779fd356630b92814f552f347e104 /src | |
parent | fbcc0d69e81ce679a29182cbecc9ffa09b9cf239 (diff) | |
download | postgresql-c03e7fbadc4526487c34b33c6cb796c9a42dc25e.tar.gz postgresql-c03e7fbadc4526487c34b33c6cb796c9a42dc25e.zip |
Remove compile warnings in multibute mode.
Diffstat (limited to 'src')
-rw-r--r-- | src/interfaces/odbc/multibyte.c | 4 | ||||
-rw-r--r-- | src/interfaces/odbc/multibyte.h | 2 |
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); |