diff options
author | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2014-02-07 15:44:58 +0100 |
---|---|---|
committer | Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> | 2014-02-07 15:44:58 +0100 |
commit | d1eb56967f0487adbdad1de6b136f083e61149ce (patch) | |
tree | 4e8ce5f7962707a4c2cf7e4b1af6af645b50f977 /bfd/cache.c | |
parent | ce6d08922f2875544f9ba461a849726ceff84528 (diff) | |
download | gdb-d1eb56967f0487adbdad1de6b136f083e61149ce.zip gdb-d1eb56967f0487adbdad1de6b136f083e61149ce.tar.gz gdb-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.c | 2 |
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 */ |