From 2696688aa31bd058ebff6610660d7e6d607c6e50 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Tue, 29 Oct 2019 18:04:04 +0100 Subject: fix compiler warnings --- src/exchangedb/exchangedb_denomkeys.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/exchangedb/exchangedb_denomkeys.c') diff --git a/src/exchangedb/exchangedb_denomkeys.c b/src/exchangedb/exchangedb_denomkeys.c index 0584c2c6..5a26ce6b 100644 --- a/src/exchangedb/exchangedb_denomkeys.c +++ b/src/exchangedb/exchangedb_denomkeys.c @@ -134,7 +134,7 @@ TALER_EXCHANGEDB_denomination_key_read (const char *filename, return GNUNET_SYSERR; } data = GNUNET_malloc (size); - if (size != + if (((ssize_t) size) != GNUNET_DISK_fn_read (filename, data, size)) @@ -217,14 +217,14 @@ TALER_EXCHANGEDB_denomination_key_write (const char *filename, &dki->issue, wsize))) goto cleanup; - if (wrote != wsize) + if (wrote != (ssize_t) wsize) goto cleanup; if (GNUNET_SYSERR == (wrote = GNUNET_DISK_file_write (fh, priv_enc, priv_enc_size))) goto cleanup; - if (wrote != priv_enc_size) + if (wrote != (ssize_t) priv_enc_size) goto cleanup; ret = GNUNET_OK; cleanup: -- cgit v1.2.3