diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-06-14 12:55:50 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-06-14 12:55:50 +0000 |
commit | 11225b176090344787ecee41b229f8caa3504453 (patch) | |
tree | fd142f868331cbdeafa85219b6a71ddfc049dec6 /src | |
parent | 5e4212497f8388306d6162b43c1cca949b3c5c0a (diff) | |
download | gnunet-11225b176090344787ecee41b229f8caa3504453.tar.gz gnunet-11225b176090344787ecee41b229f8caa3504453.zip |
cleaner
Diffstat (limited to 'src')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 11 | ||||
-rw-r--r-- | src/transport/plugin_transport_tcp.c | 4 |
2 files changed, 5 insertions, 10 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index df2ea3658..b5b336c84 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -3322,14 +3322,9 @@ setup_new_neighbour (const struct GNUNET_PeerIdentity *peer, | |||
3322 | struct TransportPlugin *tp; | 3322 | struct TransportPlugin *tp; |
3323 | struct ReadyList *rl; | 3323 | struct ReadyList *rl; |
3324 | 3324 | ||
3325 | if (0 == memcmp (peer, | 3325 | GNUNET_assert (0 != memcmp (peer, |
3326 | &my_identity, | 3326 | &my_identity, |
3327 | sizeof (struct GNUNET_PeerIdentity))) | 3327 | sizeof (struct GNUNET_PeerIdentity))); |
3328 | { | ||
3329 | /* refusing to setup a neighbour entry for myself */ | ||
3330 | GNUNET_break (0); | ||
3331 | return NULL; | ||
3332 | } | ||
3333 | #if DEBUG_TRANSPORT | 3328 | #if DEBUG_TRANSPORT |
3334 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 3329 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
3335 | "Setting up state for neighbour `%4s'\n", | 3330 | "Setting up state for neighbour `%4s'\n", |
diff --git a/src/transport/plugin_transport_tcp.c b/src/transport/plugin_transport_tcp.c index 4ded5aadd..d1f45b2f7 100644 --- a/src/transport/plugin_transport_tcp.c +++ b/src/transport/plugin_transport_tcp.c | |||
@@ -1799,7 +1799,7 @@ handle_tcp_nat_probe (void *cls, | |||
1799 | #if DEBUG_TCP_NAT | 1799 | #if DEBUG_TCP_NAT |
1800 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, | 1800 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, |
1801 | "tcp", | 1801 | "tcp", |
1802 | "received tcp NAT probe\n"); | 1802 | "received NAT probe\n"); |
1803 | #endif | 1803 | #endif |
1804 | /* We have received a TCP NAT probe, meaning we (hopefully) initiated | 1804 | /* We have received a TCP NAT probe, meaning we (hopefully) initiated |
1805 | * a connection to this peer by running gnunet-nat-client. This peer | 1805 | * a connection to this peer by running gnunet-nat-client. This peer |
@@ -2257,7 +2257,7 @@ process_interfaces (void *cls, | |||
2257 | { | 2257 | { |
2258 | #if DEBUG_TCP | 2258 | #if DEBUG_TCP |
2259 | GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, | 2259 | GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR, |
2260 | "tcp", | 2260 | "tcp", |
2261 | "Not notifying transport of address `%s' (local address)\n", | 2261 | "Not notifying transport of address `%s' (local address)\n", |
2262 | GNUNET_a2s (addr, addrlen)); | 2262 | GNUNET_a2s (addr, addrlen)); |
2263 | #endif | 2263 | #endif |