Commit c03e7fba authored by Hiroshi Inoue's avatar Hiroshi Inoue

Remove compile warnings in multibute mode.

parent fbcc0d69
...@@ -15,7 +15,7 @@ int multibyte_status; /* Multibyte Odds and ends character. */ ...@@ -15,7 +15,7 @@ int multibyte_status; /* Multibyte Odds and ends character. */
unsigned char * unsigned char *
multibyte_strchr(unsigned char *s, unsigned char c) multibyte_strchr(const unsigned char *s, unsigned char c)
{ {
int mb_st = 0, int mb_st = 0,
i = 0; i = 0;
...@@ -56,7 +56,7 @@ multibyte_strchr(unsigned char *s, unsigned char c) ...@@ -56,7 +56,7 @@ multibyte_strchr(unsigned char *s, unsigned char c)
#ifdef _DEBUG #ifdef _DEBUG
qlog("i = %d\n", i); qlog("i = %d\n", i);
#endif #endif
return (s + i); return (char *) (s + i);
} }
......
...@@ -36,4 +36,4 @@ extern int multibyte_status; /* Multibyte charcter status. */ ...@@ -36,4 +36,4 @@ extern int multibyte_status; /* Multibyte charcter status. */
void multibyte_init(void); void multibyte_init(void);
unsigned char *check_client_encoding(unsigned char *str); unsigned char *check_client_encoding(unsigned char *str);
int multibyte_char_check(unsigned char s); 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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment