cleaner
authorChristian Grothoff <christian@grothoff.org>
Tue, 14 Jun 2011 12:55:50 +0000 (12:55 +0000)
committerChristian Grothoff <christian@grothoff.org>
Tue, 14 Jun 2011 12:55:50 +0000 (12:55 +0000)
src/transport/gnunet-service-transport.c
src/transport/plugin_transport_tcp.c

index df2ea3658b2903245d4740524dd86b0901a1195f..b5b336c84fa07943fb13ed25e1a4cd87a0a03e8f 100644 (file)
@@ -3322,14 +3322,9 @@ setup_new_neighbour (const struct GNUNET_PeerIdentity *peer,
   struct TransportPlugin *tp;
   struct ReadyList *rl;
 
-  if (0 == memcmp (peer,
-                  &my_identity,
-                  sizeof (struct GNUNET_PeerIdentity)))
-    {
-      /* refusing to setup a neighbour entry for myself */
-      GNUNET_break (0); 
-      return NULL;
-    }
+  GNUNET_assert (0 != memcmp (peer,
+                             &my_identity,
+                             sizeof (struct GNUNET_PeerIdentity)));
 #if DEBUG_TRANSPORT
   GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
              "Setting up state for neighbour `%4s'\n",
index 4ded5aadd1b3f2ce974a64672790dc22551da1d0..d1f45b2f70cb59dbcfedd9044326f5ec75124039 100644 (file)
@@ -1799,7 +1799,7 @@ handle_tcp_nat_probe (void *cls,
 #if DEBUG_TCP_NAT
   GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, 
                   "tcp",
-                  "received tcp NAT probe\n");
+                  "received NAT probe\n");
 #endif
   /* We have received a TCP NAT probe, meaning we (hopefully) initiated
    * a connection to this peer by running gnunet-nat-client.  This peer
@@ -2257,7 +2257,7 @@ process_interfaces (void *cls,
          {
 #if DEBUG_TCP
           GNUNET_log_from (GNUNET_ERROR_TYPE_ERROR,
-                  "tcp",
+                          "tcp",
                           "Not notifying transport of address `%s' (local address)\n",
                           GNUNET_a2s (addr, addrlen));
 #endif