You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
+
+ SPDX-License-Identifier: AGPL3.0-or-later
*/
/**
* @file ats/ats_api_scheduling.c
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;
(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;