mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-08 14:20:07 +00:00
Simplify getrlimit64.c
Changelog: * sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64): Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is never defined in that case.
This commit is contained in:
parent
d35989be87
commit
3e4226ffdf
@ -7,6 +7,10 @@
|
||||
(settrlimit): Rename into setrlimit.
|
||||
(__sttrlimit): Rename into __setrlimit.
|
||||
|
||||
* sysdeps/unix/sysv/linux/alpha/getrlimit64.c (__old_getrlimit64):
|
||||
Drop __RLIM_T_MATCHES_RLIM64_T conditional as __old_getrlimit64 is
|
||||
never defined in that case.
|
||||
|
||||
2018-01-02 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
* sysdeps/powerpc/nofpu/libm-test-ulps: Update.
|
||||
|
@ -60,11 +60,7 @@ int
|
||||
attribute_compat_text_section
|
||||
__old_getrlimit64 (enum __rlimit_resource resource, struct rlimit64 *rlimits)
|
||||
{
|
||||
# if __RLIM_T_MATCHES_RLIM64_T
|
||||
# define rlimits32 (*rlimits)
|
||||
# else
|
||||
struct rlimit rlimits32;
|
||||
# endif
|
||||
|
||||
if (__new_getrlimit (resource, &rlimits32) < 0)
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user