aboutsummaryrefslogtreecommitdiff
path: root/src/ats/ats_api_scheduling.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ats/ats_api_scheduling.c')
-rw-r--r--src/ats/ats_api_scheduling.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/ats/ats_api_scheduling.c b/src/ats/ats_api_scheduling.c
index 3c8ad9b9a..532426e91 100644
--- a/src/ats/ats_api_scheduling.c
+++ b/src/ats/ats_api_scheduling.c
@@ -230,9 +230,8 @@ find_session (struct GNUNET_ATS_SchedulingHandle *sh,
230 as we communicate asynchronously with the ATS service. */ 230 as we communicate asynchronously with the ATS service. */
231 return NULL; 231 return NULL;
232 } 232 }
233 if (0 != memcmp (peer, 233 if (0 != GNUNET_memcmp (peer,
234 &ar->address->peer, 234 &ar->address->peer))
235 sizeof (struct GNUNET_PeerIdentity)))
236 { 235 {
237 GNUNET_break (0); 236 GNUNET_break (0);
238 return NULL; 237 return NULL;
@@ -298,9 +297,8 @@ find_session_id (struct GNUNET_ATS_SchedulingHandle *sh,
298 (GNUNET_NO == sh->session_array[i]->in_destroy) && 297 (GNUNET_NO == sh->session_array[i]->in_destroy) &&
299 ( (session == sh->session_array[i]->session) || 298 ( (session == sh->session_array[i]->session) ||
300 (NULL == sh->session_array[i]->session) ) && 299 (NULL == sh->session_array[i]->session) ) &&
301 (0 == memcmp (&address->peer, 300 (0 == GNUNET_memcmp (&address->peer,
302 &sh->session_array[i]->address->peer, 301 &sh->session_array[i]->address->peer)) &&
303 sizeof (struct GNUNET_PeerIdentity))) &&
304 (0 == GNUNET_HELLO_address_cmp (address, 302 (0 == GNUNET_HELLO_address_cmp (address,
305 sh->session_array[i]->address)) ) 303 sh->session_array[i]->address)) )
306 return i; 304 return i;