1
0
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:
Hillwood Yang
2026-05-05 14:39:10 +08:00
parent 8ad3036f29
commit 59a6aca759
2 changed files with 2 additions and 2 deletions

View File

@@ -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) {

View File

@@ -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;