forked from Imagelibrary/binutils-gdb
PR build/16550
* cache.c (bfd_cache_max_open): Cast RLIM_INFINITY to rlim_t.
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2014-02-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
|
||||
|
||||
PR build/16550
|
||||
* cache.c (bfd_cache_max_open): Cast RLIM_INFINITY to rlim_t.
|
||||
|
||||
2014-01-07 Tom Tromey <tromey@redhat.com>
|
||||
|
||||
* elf32-xtensa.c (vsprint_msg): Don't use old VA_* compatibility
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user