DnsResolver: refix -Wreorder-init-list

Either this snuck in because I haven't completed the platform compiler
upgrade yet, or is only visible via checkbuild.

Test: m checkbuild
Bug: 139945549
Change-Id: Ida791b16fdca64ebef528df45a07cb6ef1af6636
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
diff --git a/tests/resolv_gold_test.cpp b/tests/resolv_gold_test.cpp
index faa45c6..9b1fd66 100644
--- a/tests/resolv_gold_test.cpp
+++ b/tests/resolv_gold_test.cpp
@@ -192,9 +192,6 @@
     addrinfo* res = nullptr;
     const auto& args = goldtest.config().addrinfo();
     const addrinfo hints = {
-            .ai_family = args.family(),
-            .ai_socktype = args.socktype(),
-            .ai_protocol = args.protocol(),
             // Clear the flag AI_ADDRCONFIG to avoid flaky test because AI_ADDRCONFIG looks at
             // whether connectivity is available. It makes that the resolver may send only A
             // or AAAA DNS query per connectivity even AF_UNSPEC has been assigned. See also
@@ -202,6 +199,9 @@
             // TODO: Consider keeping the configuration flag AI_ADDRCONFIG once the unit
             // test can treat the IPv4 and IPv6 connectivity.
             .ai_flags = args.ai_flags() & ~AI_ADDRCONFIG,
+            .ai_family = args.family(),
+            .ai_socktype = args.socktype(),
+            .ai_protocol = args.protocol(),
     };
     NetworkDnsEventReported event;
     int rv = resolv_getaddrinfo(args.host().c_str(), nullptr, &hints, &kNetcontext, &res, &event);