From: Rainer Orth Date: Fri, 7 Feb 2014 14:44:58 +0000 (+0100) Subject: * cache.c (bfd_cache_max_open): Cast RLIM_INFINITY to rlim_t. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d1eb56967f0487adbdad1de6b136f083e61149ce;p=binutils-gdb.git * cache.c (bfd_cache_max_open): Cast RLIM_INFINITY to rlim_t. --- diff --git a/bfd/ChangeLog b/bfd/ChangeLog index e7ed98f2a79..37074c9071d 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2014-02-07 Rainer Orth + + * cache.c (bfd_cache_max_open): Cast RLIM_INFINITY to rlim_t. + 2014-02-04 Jan Kratochvil * coff-rs6000.c (xcoff_write_archive_contents_big): Free OFFSETS in diff --git a/bfd/cache.c b/bfd/cache.c index 4d46936bcfd..4071a02219f 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 */