diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-04-01 11:18:27 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-04-01 11:18:27 +0000 |
commit | a6f8b3403ad79d6e7823637e48a5118ca5731f72 (patch) | |
tree | 94a3d4ad683ed05b986ce0ead332bb7c2b1b90c9 /src/util/test_resolver_api.c | |
parent | 20d07e3b19c20d6f086295f2c482737c078059b5 (diff) | |
download | gnunet-a6f8b3403ad79d6e7823637e48a5118ca5731f72.tar.gz gnunet-a6f8b3403ad79d6e7823637e48a5118ca5731f72.zip |
Diffstat (limited to 'src/util/test_resolver_api.c')
-rw-r--r-- | src/util/test_resolver_api.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/util/test_resolver_api.c b/src/util/test_resolver_api.c index 5802370e3..3b41477bd 100644 --- a/src/util/test_resolver_api.c +++ b/src/util/test_resolver_api.c | |||
@@ -266,7 +266,7 @@ run(void *cls, struct GNUNET_SCHEDULER_Handle *sched, char * const *args, | |||
266 | = gethostbyaddr(&rootserver_addr, sizeof(rootserver_addr), AF_INET); | 266 | = gethostbyaddr(&rootserver_addr, sizeof(rootserver_addr), AF_INET); |
267 | if (rootserver == NULL) | 267 | if (rootserver == NULL) |
268 | { | 268 | { |
269 | /* Error: resolving ip addresses does not work */ | 269 | /* Error: resolving IP addresses does not work */ |
270 | #if DEBUG_RESOLVER | 270 | #if DEBUG_RESOLVER |
271 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, | 271 | GNUNET_log (GNUNET_ERROR_TYPE_WARNING, |
272 | _("gethostbyaddr() could not lookup hostname: %s\n"), | 272 | _("gethostbyaddr() could not lookup hostname: %s\n"), |
@@ -274,14 +274,16 @@ run(void *cls, struct GNUNET_SCHEDULER_Handle *sched, char * const *args, | |||
274 | #endif | 274 | #endif |
275 | GNUNET_break(0); | 275 | GNUNET_break(0); |
276 | } | 276 | } |
277 | 277 | else | |
278 | if (0 != strcmp(rootserver->h_name, ROOTSERVER_NAME)) | 278 | { |
279 | if (0 != strcmp(rootserver->h_name, ROOTSERVER_NAME)) | ||
279 | { | 280 | { |
280 | #if DEBUG_RESOLVER | 281 | #if DEBUG_RESOLVER |
281 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received hostname and hostname for root name server differ\n"); | 282 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received hostname and hostname for root name server differ\n"); |
282 | #endif | 283 | #endif |
283 | GNUNET_break(0); | 284 | GNUNET_break(0); |
284 | } | 285 | } |
286 | } | ||
285 | 287 | ||
286 | #if DEBUG_RESOLVER | 288 | #if DEBUG_RESOLVER |
287 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "System's own reverse name resolution is working\n"); | 289 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "System's own reverse name resolution is working\n"); |