diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-09-01 13:18:50 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-09-01 13:18:50 +0000 |
commit | c34548d2d6629269e689a9b2685df7e375a9c7a8 (patch) | |
tree | c5006973126c1ab4c8ca2a826a0c73c5751f3c38 /src/transport/plugin_transport_udp.c | |
parent | ca3b021998040082862725efd5c310a65fae6b92 (diff) | |
download | gnunet-c34548d2d6629269e689a9b2685df7e375a9c7a8.tar.gz gnunet-c34548d2d6629269e689a9b2685df7e375a9c7a8.zip |
transport service hello reduction, klocwork fixes
Diffstat (limited to 'src/transport/plugin_transport_udp.c')
-rw-r--r-- | src/transport/plugin_transport_udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/transport/plugin_transport_udp.c b/src/transport/plugin_transport_udp.c index f8c68244a..02f81a576 100644 --- a/src/transport/plugin_transport_udp.c +++ b/src/transport/plugin_transport_udp.c | |||
@@ -978,7 +978,8 @@ process_interfaces (void *cls, | |||
978 | &((struct sockaddr_in6 *) addr)->sin6_addr, | 978 | &((struct sockaddr_in6 *) addr)->sin6_addr, |
979 | sizeof (struct in6_addr)); | 979 | sizeof (struct in6_addr)); |
980 | GNUNET_assert(NULL != inet_ntop(AF_INET6, &t6.ipv6_addr, &buf[0], INET6_ADDRSTRLEN)); | 980 | GNUNET_assert(NULL != inet_ntop(AF_INET6, &t6.ipv6_addr, &buf[0], INET6_ADDRSTRLEN)); |
981 | if ((plugin->bind_address != NULL) || ((plugin->bind6_address != NULL) && (0 != strcmp(buf, plugin->bind_address)))) | 981 | if (((plugin->bind_address != NULL) && (0 != strcmp(buf, plugin->bind_address))) |
982 | || ((plugin->bind6_address != NULL) && (0 != strcmp(buf, plugin->bind6_address)))) | ||
982 | { | 983 | { |
983 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "%s: Not notifying transport of address %s\n", "UDP", GNUNET_a2s (addr, addrlen)); | 984 | GNUNET_log(GNUNET_ERROR_TYPE_DEBUG, "%s: Not notifying transport of address %s\n", "UDP", GNUNET_a2s (addr, addrlen)); |
984 | return GNUNET_OK; | 985 | return GNUNET_OK; |
@@ -1177,7 +1178,6 @@ udp_plugin_server_read (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc | |||
1177 | return; | 1178 | return; |
1178 | } | 1179 | } |
1179 | 1180 | ||
1180 | port = 0; | ||
1181 | port_start = NULL; | 1181 | port_start = NULL; |
1182 | for (i = 0; i < sizeof(mybuf); i++) | 1182 | for (i = 0; i < sizeof(mybuf); i++) |
1183 | { | 1183 | { |