From: Matthias Wachs Date: Wed, 1 Jun 2011 10:20:00 +0000 (+0000) Subject: this code made no sense in this context X-Git-Tag: initial-import-from-subversion-38251~18364 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=d526b6e30cc7c6c06fd352e0e5fcc47bea52f39c;p=oweals%2Fgnunet.git this code made no sense in this context --- diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index 8e6deb037..bb814a996 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c @@ -1903,12 +1903,11 @@ udp_check_address (void *cls, size_t addrlen) { struct Plugin *plugin = cls; - char buf[INET6_ADDRSTRLEN]; + const void *sb; struct in_addr a4; struct in6_addr a6; int af; - uint16_t port; struct IPv4UdpAddress *v4; struct IPv6UdpAddress *v6; @@ -1930,7 +1929,6 @@ udp_check_address (void *cls, return GNUNET_SYSERR; af = AF_INET; - port = ntohs (v4->u_port); memcpy (&a4, &v4->ipv4_addr, sizeof (a4)); sb = &a4; } @@ -1950,19 +1948,10 @@ udp_check_address (void *cls, return GNUNET_SYSERR; af = AF_INET6; - port = ntohs (v6->u6_port); memcpy (&a6, &v6->ipv6_addr, sizeof (a6)); sb = &a6; } - inet_ntop (af, sb, buf, INET6_ADDRSTRLEN); - -#if DEBUG_UDP - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, - "Informing transport service about my address `%s:%u'\n", - buf, - port); -#endif return GNUNET_OK; }