diff options
author | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-07-15 11:49:01 +0000 |
---|---|---|
committer | grothoff <grothoff@140774ce-b5e7-0310-ab8b-a85725594a96> | 2011-07-15 11:49:01 +0000 |
commit | 029993ccbceffd474e6a343214cf309bdaaface6 (patch) | |
tree | 1af0ba9f180eee6113d252f61690919636412bc7 /src/dv | |
parent | 2081f5ed209c82b7540bb61519d632f3b9112ca3 (diff) |
fix
git-svn-id: https://gnunet.org/svn/gnunet@16010 140774ce-b5e7-0310-ab8b-a85725594a96
Diffstat (limited to 'src/dv')
-rw-r--r-- | src/dv/test_transport_api_dv.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/src/dv/test_transport_api_dv.c b/src/dv/test_transport_api_dv.c index 786376eb78..8b42c43110 100644 --- a/src/dv/test_transport_api_dv.c +++ b/src/dv/test_transport_api_dv.c @@ -879,7 +879,7 @@ static void all_connect_handler (void *cls, { struct GNUNET_TESTING_Daemon *d = cls; struct GNUNET_TESTING_Daemon *second_daemon; - char *second_shortname = strdup(GNUNET_i2s(peer)); + char *second_shortname; #if !TEST_ALL struct TestMessageContext *temp_context; #endif @@ -887,21 +887,23 @@ static void all_connect_handler (void *cls, if (0 == memcmp(&d->id, peer, sizeof(struct GNUNET_PeerIdentity))) return; - + second_shortname = GNUNET_strdup (GNUNET_i2s(peer)); distance = get_atsi_distance(atsi); #if VERBOSE - GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "connected peer %s to peer %s, distance %u\n", - d->shortname, - second_shortname, - distance); + GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, + "connected peer %s to peer %s, distance %u\n", + d->shortname, + second_shortname, + distance); #endif second_daemon = GNUNET_CONTAINER_multihashmap_get(peer_daemon_hash, &peer->hashPubKey); if (second_daemon == NULL) { - GNUNET_log (GNUNET_ERROR_TYPE_WARNING, "Couldn't find second peer!\n"); + GNUNET_log (GNUNET_ERROR_TYPE_WARNING, + "Couldn't find second peer!\n"); GNUNET_free(second_shortname); return; } |