Skip to content

Commit c03e7fb

Browse files
author
Hiroshi Inoue
committed
Remove compile warnings in multibute mode.
1 parent fbcc0d6 commit c03e7fb

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/interfaces/odbc/multibyte.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ int multibyte_status; /* Multibyte Odds and ends character. */
1515

1616

1717
unsigned char *
18-
multibyte_strchr(unsigned char *s, unsigned char c)
18+
multibyte_strchr(const unsigned char *s, unsigned char c)
1919
{
2020
int mb_st = 0,
2121
i = 0;
@@ -56,7 +56,7 @@ multibyte_strchr(unsigned char *s, unsigned char c)
5656
#ifdef _DEBUG
5757
qlog("i = %d\n", i);
5858
#endif
59-
return (s + i);
59+
return (char *) (s + i);
6060
}
6161

6262

src/interfaces/odbc/multibyte.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ extern int multibyte_status; /* Multibyte charcter status. */
3636
void multibyte_init(void);
3737
unsigned char *check_client_encoding(unsigned char *str);
3838
int multibyte_char_check(unsigned char s);
39-
unsigned char *multibyte_strchr(unsigned char *s, unsigned char c);
39+
unsigned char *multibyte_strchr(const unsigned char *s, unsigned char c);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy