-signed cmp, otherwise -1 will not trigger
authorChristian Grothoff <christian@grothoff.org>
Thu, 8 Oct 2015 17:01:28 +0000 (17:01 +0000)
committerChristian Grothoff <christian@grothoff.org>
Thu, 8 Oct 2015 17:01:28 +0000 (17:01 +0000)
src/peerinfo/gnunet-service-peerinfo.c

index 31ba3455eff81f0ff3021a5efc8e5b37b8e9a3b8..ab0aad9d54d7aa920500d65b83a2d05fa8713e81 100644 (file)
@@ -971,7 +971,7 @@ discard_hosts_helper (void *cls,
   char *writebuffer;
 
   read_size = GNUNET_DISK_fn_read (fn, buffer, sizeof (buffer));
-  if (read_size < sizeof (struct GNUNET_MessageHeader))
+  if (read_size < (int) sizeof (struct GNUNET_MessageHeader))
   {
     if (0 != UNLINK (fn))
       GNUNET_log_strerror_file (GNUNET_ERROR_TYPE_WARNING |