mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Remove compile warnings in multibute mode.
This commit is contained in:
parent
fbcc0d69e8
commit
c03e7fbadc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user