Skip to content
Snippets Groups Projects
Commit c03e7fba authored by Hiroshi Inoue's avatar Hiroshi Inoue
Browse files

Remove compile warnings in multibute mode.

parent fbcc0d69
No related branches found
No related tags found
No related merge requests found
......@@ -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);
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment