adapt to GNUENT_DISK_fn_write API change

This commit is contained in:
Christian Grothoff 2020-12-19 18:44:23 +01:00
parent 0ad6cb0a86
commit 7877c24ef2
No known key found for this signature in database
GPG Key ID: 939E6BE1E29FC3CC

View File

@ -2332,11 +2332,11 @@ tofu_check (const struct TALER_SecurityModulePublicKeyP secm[2])
return GNUNET_OK;
}
/* persist keys for future runs */
ret = GNUNET_DISK_fn_write (fn,
secm,
sizeof (old),
GNUNET_DISK_PERM_USER_READ);
if (ret != sizeof (old))
if (GNUNET_OK !=
GNUNET_DISK_fn_write (fn,
secm,
sizeof (old),
GNUNET_DISK_PERM_USER_READ))
{
GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
"Failed to store key material in file `%s'\n",