Merge pull request #3038 from hillwoodroc/master

Fix build with gcc13
This commit is contained in:
Max Lv
2026-06-17 11:26:43 +08:00
committed by GitHub
2 changed files with 2 additions and 2 deletions
+1 -1
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) {
+1 -1
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;