Refactor lib/exchange_api_reserve.c for GNUNET_memcmp

This commit is contained in:
ng0 2019-04-08 18:51:48 +00:00
parent 8c591b4f1a
commit 1aa9d9fee6
No known key found for this signature in database
GPG Key ID: E22F9BBFEE348588

View File

@ -238,9 +238,8 @@ parse_reserve_history (struct TALER_EXCHANGE_Handle *exchange,
&uuid[uuid_off]);
for (i=0;i<uuid_off;i++)
{
if (0 == memcmp (&uuid[uuid_off],
&uuid[i],
sizeof (struct GNUNET_HashCode)))
if (0 == GNUNET_memcmp (&uuid[uuid_off],
&uuid[i]))
{
GNUNET_break_op (0);
GNUNET_JSON_parse_free (withdraw_spec);