From c2e350b9be83e5cb2b42a9851514fb5b36edda19 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Thu, 26 Sep 2013 12:08:14 +0000 Subject: [PATCH] fixed test --- src/ats/test_ats_api_performance_monitor_initial_callback.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ++; } -- 2.25.1