From f5f5a9f680df2cebe6435ec87650cb3cb6e3ef6e Mon Sep 17 00:00:00 2001 From: Julius Bünger Date: Fri, 26 Apr 2019 05:56:54 +0200 Subject: memcmp() -> GNUNET_memcmp(), first take --- src/ats/ats_api_scheduling.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'src/ats/ats_api_scheduling.c') 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, as we communicate asynchronously with the ATS service. */ return NULL; } - if (0 != memcmp (peer, - &ar->address->peer, - sizeof (struct GNUNET_PeerIdentity))) + if (0 != GNUNET_memcmp (peer, + &ar->address->peer)) { GNUNET_break (0); return NULL; @@ -298,9 +297,8 @@ find_session_id (struct GNUNET_ATS_SchedulingHandle *sh, (GNUNET_NO == sh->session_array[i]->in_destroy) && ( (session == sh->session_array[i]->session) || (NULL == sh->session_array[i]->session) ) && - (0 == memcmp (&address->peer, - &sh->session_array[i]->address->peer, - sizeof (struct GNUNET_PeerIdentity))) && + (0 == GNUNET_memcmp (&address->peer, + &sh->session_array[i]->address->peer)) && (0 == GNUNET_HELLO_address_cmp (address, sh->session_array[i]->address)) ) return i; -- cgit v1.2.3