diff options
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/cache.c | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e7ed98f..37074c9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -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 diff --git a/bfd/cache.c b/bfd/cache.c index 4d46936..4071a02 100644 --- a/bfd/cache.c +++ b/bfd/cache.c @@ -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 */ |