diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-06-04 23:30:14 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-06-04 23:30:14 +0200 |
commit | 1e0b9f58484526d7551032dd1a50b0683d91cbd8 (patch) | |
tree | 18187ec7733b9291b6e5a02e1ab79a9a4d493bc3 /src/util | |
parent | 0a01368474f54f563aa8168bb4d0a6356a66c104 (diff) | |
download | gnunet-1e0b9f58484526d7551032dd1a50b0683d91cbd8.tar.gz gnunet-1e0b9f58484526d7551032dd1a50b0683d91cbd8.zip |
bloody off_t
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/gnunet-service-resolver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/util/gnunet-service-resolver.c b/src/util/gnunet-service-resolver.c index 29ecf3e89..2cabe553b 100644 --- a/src/util/gnunet-service-resolver.c +++ b/src/util/gnunet-service-resolver.c | |||
@@ -344,7 +344,7 @@ lookup_dns_servers (char ***server_addrs) | |||
344 | GNUNET_DISK_file_close (fh); | 344 | GNUNET_DISK_file_close (fh); |
345 | return -1; | 345 | return -1; |
346 | } | 346 | } |
347 | if (bytes_read > (off_t) SIZE_MAX) | 347 | if (((unsigned long long) bytes_read) > (unsigned long long) SIZE_MAX) |
348 | { | 348 | { |
349 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 349 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
350 | "/etc/resolv.conf file too large to mmap. " | 350 | "/etc/resolv.conf file too large to mmap. " |
@@ -1213,7 +1213,7 @@ load_etc_hosts (void) | |||
1213 | GNUNET_DISK_file_close (fh); | 1213 | GNUNET_DISK_file_close (fh); |
1214 | return; | 1214 | return; |
1215 | } | 1215 | } |
1216 | if (bytes_read > (off_t) SIZE_MAX) | 1216 | if (((unsigned long long) bytes_read) > (unsigned long long) SIZE_MAX) |
1217 | { | 1217 | { |
1218 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | 1218 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, |
1219 | "/etc/hosts file too large to mmap. " | 1219 | "/etc/hosts file too large to mmap. " |