aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-tools
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-12-19 18:44:23 +0100
committerChristian Grothoff <christian@grothoff.org>2020-12-19 18:44:23 +0100
commit7877c24ef2e1a53cdfb182b94a35836b05701f4d (patch)
treecc969aea351d7aedd4e7ff04e81c9bf891fdec2e /src/exchange-tools
parent0ad6cb0a860363fbe0c33a027af199923c4944e6 (diff)
adapt to GNUENT_DISK_fn_write API change
Diffstat (limited to 'src/exchange-tools')
-rw-r--r--src/exchange-tools/taler-exchange-offline.c10
1 files 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",