Remove compile warnings in multibute mode.

This commit is contained in:
Hiroshi Inoue 2002-02-18 05:54:50 +00:00
parent fbcc0d69e8
commit c03e7fbadc
2 changed files with 3 additions and 3 deletions

View 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);
}

View 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);