diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-29 18:04:04 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-29 20:57:18 +0100 |
commit | 2696688aa31bd058ebff6610660d7e6d607c6e50 (patch) | |
tree | 41c0b34d966fe0768abc92007e6b5205a0644bc2 /src/exchangedb/exchangedb_auditorkeys.c | |
parent | 36efe024f55c3373344170f077b984f678aa4269 (diff) |
fix compiler warnings
Diffstat (limited to 'src/exchangedb/exchangedb_auditorkeys.c')
-rw-r--r-- | src/exchangedb/exchangedb_auditorkeys.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/exchangedb/exchangedb_auditorkeys.c b/src/exchangedb/exchangedb_auditorkeys.c index bfe406d6d..fabd5278f 100644 --- a/src/exchangedb/exchangedb_auditorkeys.c +++ b/src/exchangedb/exchangedb_auditorkeys.c @@ -119,7 +119,7 @@ auditor_iter (void *cls, return GNUNET_OK; } af = GNUNET_malloc (size); - if (size != + if (((ssize_t) size) != GNUNET_DISK_fn_read (filename, af, size)) @@ -274,22 +274,22 @@ TALER_EXCHANGEDB_auditor_write (const char *filename, &af, wsize))) goto cleanup; - if (wrote != wsize) + if (wrote != (ssize_t) wsize) goto cleanup; wsize = dki_len * sizeof (struct TALER_AuditorSignatureP); - if (wsize == + if (((ssize_t) wsize) == GNUNET_DISK_file_write (fh, asigs, wsize)) ret = GNUNET_OK; wsize = dki_len * sizeof (struct TALER_DenominationKeyValidityPS); - if (wsize == + if (((ssize_t) wsize) == GNUNET_DISK_file_write (fh, dki, wsize)) ret = GNUNET_OK; wsize = strlen (auditor_url) + 1; - if (wsize == + if (((ssize_t) wsize) == GNUNET_DISK_file_write (fh, auditor_url, wsize)) |