aboutsummaryrefslogtreecommitdiff
path: root/src/util/test_resolver_api.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-06-17 07:27:45 +0000
committerChristian Grothoff <christian@grothoff.org>2011-06-17 07:27:45 +0000
commit90d37ee4092d603276143c66179c8d2419da0514 (patch)
tree5370902087a043db961076bb2586cb648ce12122 /src/util/test_resolver_api.c
parent75369ac52bede0b6873f7a915a3af8a15c6f83ac (diff)
downloadgnunet-90d37ee4092d603276143c66179c8d2419da0514.tar.gz
gnunet-90d37ee4092d603276143c66179c8d2419da0514.zip
fix
Diffstat (limited to 'src/util/test_resolver_api.c')
-rw-r--r--src/util/test_resolver_api.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/util/test_resolver_api.c b/src/util/test_resolver_api.c
index cd3e42d23..d1c343f82 100644
--- a/src/util/test_resolver_api.c
+++ b/src/util/test_resolver_api.c
@@ -233,13 +233,13 @@ run(void *cls, char * const *args,
233 sa.sin_len = (u_char) sizeof (sa); 233 sa.sin_len = (u_char) sizeof (sa);
234#endif 234#endif
235 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK); 235 sa.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
236 GNUNET_RESOLVER_ip_get(cfg, "localhost", AF_INET, timeout, &check_127, 236 GNUNET_RESOLVER_ip_get("localhost", AF_INET, timeout, &check_127,
237 cls); 237 cls);
238 GNUNET_RESOLVER_hostname_get(cfg, (const struct sockaddr *) &sa, 238 GNUNET_RESOLVER_hostname_get((const struct sockaddr *) &sa,
239 sizeof(struct sockaddr), GNUNET_YES, timeout, &check_localhost, cls); 239 sizeof(struct sockaddr), GNUNET_YES, timeout, &check_localhost, cls);
240 GNUNET_RESOLVER_hostname_get(cfg, (const struct sockaddr *) &sa, 240 GNUNET_RESOLVER_hostname_get((const struct sockaddr *) &sa,
241 sizeof(struct sockaddr), GNUNET_NO, timeout, &check_localhost_num, cls); 241 sizeof(struct sockaddr), GNUNET_NO, timeout, &check_localhost_num, cls);
242 GNUNET_RESOLVER_hostname_resolve(cfg, AF_UNSPEC, timeout, 242 GNUNET_RESOLVER_hostname_resolve(AF_UNSPEC, timeout,
243 &check_hostname, cls); 243 &check_hostname, cls);
244 244
245 245
@@ -298,7 +298,7 @@ run(void *cls, char * const *args,
298#endif 298#endif
299 299
300 /* Resolve the same using GNUNET */ 300 /* Resolve the same using GNUNET */
301 GNUNET_RESOLVER_ip_get(cfg, ROOTSERVER_NAME, AF_INET, timeout, 301 GNUNET_RESOLVER_ip_get(ROOTSERVER_NAME, AF_INET, timeout,
302 &check_rootserver_ip, cls); 302 &check_rootserver_ip, cls);
303 303
304 /* 304 /*
@@ -354,7 +354,7 @@ run(void *cls, char * const *args,
354#else 354#else
355 sa.sin_addr.S_un.S_addr = inet_addr(ROOTSERVER_IP); 355 sa.sin_addr.S_un.S_addr = inet_addr(ROOTSERVER_IP);
356#endif 356#endif
357 GNUNET_RESOLVER_hostname_get(cfg, (const struct sockaddr *) &sa, 357 GNUNET_RESOLVER_hostname_get((const struct sockaddr *) &sa,
358 sizeof(struct sockaddr), GNUNET_YES, timeout, &check_rootserver_name, cls); 358 sizeof(struct sockaddr), GNUNET_YES, timeout, &check_rootserver_name, cls);
359} 359}
360 360