Keep clang-tidy clean in the new C++ tests

This commit is contained in:
Max Lv
2026-10-15 00:34:31 +08:00
parent ac29c37270
commit 680b3a3a62
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -24,8 +24,8 @@ namespace {
struct Answered {
unsigned called = 0;
bool missing = false;
int family = 0;
bool missing = false;
bool ok = false;
};
@@ -138,6 +138,7 @@ void test_answers_and_limits()
SS_CHECK(loop.init());
test_loop = &loop;
int fd = socket(AF_INET, SOCK_DGRAM, 0);
SS_CHECK(fd >= 0);
sockaddr_in a{};
a.sin_family = AF_INET;
a.sin_addr.s_addr = htonl(INADDR_LOOPBACK);