aboutsummaryrefslogtreecommitdiff
path: root/src/util/gnunet-service-resolver.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-05-06 01:12:57 +0000
committerChristian Grothoff <christian@grothoff.org>2012-05-06 01:12:57 +0000
commit9fac6b6eefdc9144053f736fd388cb2199a97046 (patch)
tree82740a981b7f6ae973d915aa77797acd9db668b2 /src/util/gnunet-service-resolver.c
parent23d8d343d5c70481ecf78ec4fafc698907f3e8a9 (diff)
downloadgnunet-9fac6b6eefdc9144053f736fd388cb2199a97046.tar.gz
gnunet-9fac6b6eefdc9144053f736fd388cb2199a97046.zip
-removing legacy ifdefs, fixing log statements
Diffstat (limited to 'src/util/gnunet-service-resolver.c')
-rw-r--r--src/util/gnunet-service-resolver.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/util/gnunet-service-resolver.c b/src/util/gnunet-service-resolver.c
index f20666a38..97eba6d11 100644
--- a/src/util/gnunet-service-resolver.c
+++ b/src/util/gnunet-service-resolver.c
@@ -490,10 +490,8 @@ handle_get (void *cls, struct GNUNET_SERVER_Client *client,
490 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); 490 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
491 return; 491 return;
492 } 492 }
493#if DEBUG_RESOLVER 493 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Resolver asked to look up `%s'.\n",
494 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, _("Resolver asked to look up `%s'.\n"),
495 hostname); 494 hostname);
496#endif
497 get_ip_from_hostname (client, hostname, af); 495 get_ip_from_hostname (client, hostname, af);
498 return; 496 return;
499 } 497 }
@@ -521,15 +519,13 @@ handle_get (void *cls, struct GNUNET_SERVER_Client *client,
521 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR); 519 GNUNET_SERVER_receive_done (client, GNUNET_SYSERR);
522 return; 520 return;
523 } 521 }
524#if DEBUG_RESOLVER
525 { 522 {
526 char buf[INET6_ADDRSTRLEN]; 523 char buf[INET6_ADDRSTRLEN];
527 524
528 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 525 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
529 _("Resolver asked to look up IP address `%s'.\n"), 526 "Resolver asked to look up IP address `%s'.\n",
530 inet_ntop (af, ip, buf, sizeof (buf))); 527 inet_ntop (af, ip, buf, sizeof (buf)));
531 } 528 }
532#endif
533 get_ip_as_string (client, af, ip); 529 get_ip_as_string (client, af, ip);
534} 530}
535 531