mirror of
https://github.com/shadowsocks/shadowsocks-libev.git
synced 2026-09-24 00:45:06 +00:00
Fix build with gcc13
This commit is contained in:
@@ -57,7 +57,7 @@ static void
|
||||
parse_addr_cidr(const char *str, char *host, int *cidr)
|
||||
{
|
||||
int ret = -1;
|
||||
char *pch;
|
||||
const char *pch;
|
||||
|
||||
pch = strchr(str, '/');
|
||||
while (pch != NULL) {
|
||||
|
||||
@@ -275,7 +275,7 @@ validate_hostname(const char *hostname, const int hostname_len)
|
||||
const char *label = hostname;
|
||||
while (label < hostname + hostname_len) {
|
||||
size_t label_len = hostname_len - (label - hostname);
|
||||
char *next_dot = strchr(label, '.');
|
||||
const char *next_dot = strchr(label, '.');
|
||||
if (next_dot != NULL)
|
||||
label_len = next_dot - label;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user