From 7877c24ef2e1a53cdfb182b94a35836b05701f4d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 19 Dec 2020 18:44:23 +0100 Subject: [PATCH] adapt to GNUENT_DISK_fn_write API change --- src/exchange-tools/taler-exchange-offline.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/exchange-tools/taler-exchange-offline.c b/src/exchange-tools/taler-exchange-offline.c index b45274ff1..22153e660 100644 --- a/src/exchange-tools/taler-exchange-offline.c +++ b/src/exchange-tools/taler-exchange-offline.c @@ -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",