diff options
Diffstat (limited to 'src/util/test_resolver_api.c')
-rw-r--r-- | src/util/test_resolver_api.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/util/test_resolver_api.c b/src/util/test_resolver_api.c index ea26c4ee6..0b27a2eff 100644 --- a/src/util/test_resolver_api.c +++ b/src/util/test_resolver_api.c | |||
@@ -307,11 +307,8 @@ run(void *cls, char *const *args, const char *cfgfile, | |||
307 | #if HAVE_SOCKADDR_IN_SIN_LEN | 307 | #if HAVE_SOCKADDR_IN_SIN_LEN |
308 | sa.sin_len = (u_char)sizeof(sa); | 308 | sa.sin_len = (u_char)sizeof(sa); |
309 | #endif | 309 | #endif |
310 | #ifndef MINGW | ||
311 | inet_aton(ROOTSERVER_IP, &sa.sin_addr); | 310 | inet_aton(ROOTSERVER_IP, &sa.sin_addr); |
312 | #else | 311 | |
313 | sa.sin_addr.S_un.S_addr = inet_addr(ROOTSERVER_IP); | ||
314 | #endif | ||
315 | GNUNET_RESOLVER_hostname_get((const struct sockaddr *)&sa, | 312 | GNUNET_RESOLVER_hostname_get((const struct sockaddr *)&sa, |
316 | sizeof(struct sockaddr), GNUNET_YES, timeout, | 313 | sizeof(struct sockaddr), GNUNET_YES, timeout, |
317 | &check_rootserver_name, cls); | 314 | &check_rootserver_name, cls); |