p should be p
authorChristian Grothoff <christian@grothoff.org>
Wed, 5 Oct 2011 13:54:31 +0000 (13:54 +0000)
committerChristian Grothoff <christian@grothoff.org>
Wed, 5 Oct 2011 13:54:31 +0000 (13:54 +0000)
src/transport/test_transport_api_reliability.c

index df361b1376c779da853fe4de40a64d66ef1921ba..e028c93fd7c04150c83d4ee3660b37bdb191b568 100644 (file)
@@ -237,7 +237,8 @@ notify_receive (void *cls, const struct GNUNET_PeerIdentity *peer,
 #if VERBOSE
   if (ntohl (hdr->num) % 5000 == 0)
   {
-    char * ps = strdup(GNUNET_i2s(&n->id));
+    struct PeerContext *p = cls;
+    char * ps = strdup(GNUNET_i2s(&p->id));
     GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Peer %u (`%s') got message %u of size %u from peer (`%s')\n",
                 p->no, ps, ntohl (hdr->num), ntohs (message->size), GNUNET_i2s(peer));
     GNUNET_free (ps);