]> granicus.if.org Git - postgresql/commitdiff
Remove compile warnings in multibute mode.
authorHiroshi Inoue <inoue@tpf.co.jp>
Mon, 18 Feb 2002 05:54:50 +0000 (05:54 +0000)
committerHiroshi Inoue <inoue@tpf.co.jp>
Mon, 18 Feb 2002 05:54:50 +0000 (05:54 +0000)
src/interfaces/odbc/multibyte.c
src/interfaces/odbc/multibyte.h

index b19af2764c0a97ac76115d6be245d557e70c042c..d10c57544553adc0d9e673d111f7505a7c88a2a9 100644 (file)
@@ -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);
 }
 
 
index 43870458e0d7686b4bce04c7f641019a6cc79863..c171c68fbd3f54867f9d0bf13a8c81b0de5c3a05 100644 (file)
@@ -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);