From: Matthias Wachs Date: Thu, 26 Sep 2013 12:08:14 +0000 (+0000) Subject: fixed test X-Git-Tag: initial-import-from-subversion-38251~7052 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=c2e350b9be83e5cb2b42a9851514fb5b36edda19;p=oweals%2Fgnunet.git fixed test --- diff --git a/src/ats/test_ats_api_performance_monitor_initial_callback.c b/src/ats/test_ats_api_performance_monitor_initial_callback.c index e3af48cc6..8b285e3b2 100644 --- a/src/ats/test_ats_api_performance_monitor_initial_callback.c +++ b/src/ats/test_ats_api_performance_monitor_initial_callback.c @@ -107,11 +107,11 @@ ats_perf_cb (void *cls, static int peer1 = GNUNET_NO; static int done = GNUNET_NO; - if (0 == memcmp (address, &p[0].id, sizeof (p[0].id))) + if (0 == memcmp (&address->peer, &p[0].id, sizeof (p[0].id))) { peer0 ++; } - if ((GNUNET_NO == peer0) && (0 == memcmp (address, &p[1].id, sizeof (p[1].id)))) + if (0 == memcmp (&address->peer, &p[1].id, sizeof (p[1].id))) { peer1 ++; }