From d1eb56967f0487adbdad1de6b136f083e61149ce Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Fri, 7 Feb 2014 15:44:58 +0100 Subject: [PATCH] * cache.c (bfd_cache_max_open): Cast RLIM_INFINITY to rlim_t. --- bfd/ChangeLog | 4 ++++ bfd/cache.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 */ -- 2.30.2