aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/run_resolver.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/run_resolver.cxx b/test/run_resolver.cxx
index bb40783eb..389d733b1 100644
--- a/test/run_resolver.cxx
+++ b/test/run_resolver.cxx
@@ -19,6 +19,7 @@
#include "config.h"
#include "net/Resolver.hxx"
+#include "net/SocketAddress.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
@@ -50,7 +51,7 @@ int main(int argc, char **argv)
}
for (const struct addrinfo *i = ai; i != NULL; i = i->ai_next) {
- const auto s = sockaddr_to_string(i->ai_addr, i->ai_addrlen);
+ const auto s = sockaddr_to_string({i->ai_addr, i->ai_addrlen});
printf("%s\n", s.c_str());
}