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. */
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);
}
......
......@@ -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);
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