* cache.c (bfd_cache_max_open): Cast RLIM_INFINITY to rlim_t.
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 7 Feb 2014 14:44:58 +0000 (15:44 +0100)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Fri, 7 Feb 2014 14:44:58 +0000 (15:44 +0100)
bfd/ChangeLog
bfd/cache.c

index e7ed98f2a79a85bbb7cc8fce8c6b1efde7f6fe18..37074c9071d7753198cac91e41e7b8f5211a8a29 100644 (file)
@@ -1,3 +1,7 @@
+2014-02-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
+
+       * cache.c (bfd_cache_max_open): Cast RLIM_INFINITY to rlim_t.
+
 2014-02-04  Jan Kratochvil  <jan.kratochvil@redhat.com>
 
        * coff-rs6000.c (xcoff_write_archive_contents_big): Free OFFSETS in
index 4d46936bcfdb622281aa2ec568b899cbdfbc7254..4071a02219feb184a36ee58250a712953fac65a4 100644 (file)
@@ -82,7 +82,7 @@ bfd_cache_max_open (void)
 #ifdef HAVE_GETRLIMIT
       struct rlimit rlim;
       if (getrlimit (RLIMIT_NOFILE, &rlim) == 0
-         && rlim.rlim_cur != RLIM_INFINITY)
+         && rlim.rlim_cur != (rlim_t) RLIM_INFINITY)
        max = rlim.rlim_cur / 8;
       else
 #endif /* HAVE_GETRLIMIT */