aboutsummaryrefslogtreecommitdiff
path: root/bfd/cache.c
diff options
context:
space:
mode:
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2014-02-07 15:44:58 +0100
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>2014-02-07 15:44:58 +0100
commitd1eb56967f0487adbdad1de6b136f083e61149ce (patch)
tree4e8ce5f7962707a4c2cf7e4b1af6af645b50f977 /bfd/cache.c
parentce6d08922f2875544f9ba461a849726ceff84528 (diff)
downloadbinutils-d1eb56967f0487adbdad1de6b136f083e61149ce.zip
binutils-d1eb56967f0487adbdad1de6b136f083e61149ce.tar.gz
binutils-d1eb56967f0487adbdad1de6b136f083e61149ce.tar.bz2
* cache.c (bfd_cache_max_open): Cast RLIM_INFINITY to rlim_t.
Diffstat (limited to 'bfd/cache.c')
-rw-r--r--bfd/cache.c2
1 files changed, 1 insertions, 1 deletions
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 */