align mg_addr to 32- and 64-bits

This commit is contained in:
Sergio R. Caprile committed 2025-09-08 11:43:28 -03:00
1 parent df994df611
commit cc069e7e5d
5 files changed
+27 -29

No files matched your search

+1 -1
View File
@@ -3182,7 +3182,7 @@ static void test_udp(void) {
}
static void test_check_ip_acl(void) {
struct mg_addr ip = {{1, 2, 3, 4}, 0, 0, false}; // 1.2.3.4
struct mg_addr ip = {{{1, 2, 3, 4}}, 0, 0, false}; // 1.2.3.4
ASSERT(mg_check_ip_acl(mg_str(NULL), &ip) == 1);
ASSERT(mg_check_ip_acl(mg_str(""), &ip) == 1);
ASSERT(mg_check_ip_acl(mg_str("invalid"), &ip) == -1);