diff options
Diffstat (limited to 'ace/OS_NS_sys_resource.inl')
-rw-r--r-- | ace/OS_NS_sys_resource.inl | 19 |
1 files changed, 3 insertions, 16 deletions
diff --git a/ace/OS_NS_sys_resource.inl b/ace/OS_NS_sys_resource.inl index ea6fc92849d..fbc5ce8e3a0 100644 --- a/ace/OS_NS_sys_resource.inl +++ b/ace/OS_NS_sys_resource.inl @@ -59,7 +59,7 @@ ACE_OS::getrusage (int who, struct rusage *ru) } ACE_INLINE int -ACE_OS::setrlimit (int resource, const struct rlimit *rl) +ACE_OS::setrlimit (int resource, ACE_SETRLIMIT_TYPE *rl) { ACE_OS_TRACE ("ACE_OS::setrlimit"); @@ -70,23 +70,10 @@ ACE_OS::setrlimit (int resource, const struct rlimit *rl) ACE_NOTSUP_RETURN (-1); #else # if defined (ACE_HAS_RLIMIT_RESOURCE_ENUM) -# if defined (ACE_HAS_NONCONST_SETRLIMIT) - ACE_OSCALL_RETURN (::setrlimit ((ACE_HAS_RLIMIT_RESOURCE_ENUM) resource, - const_cast<struct rlimit *>(rl) - ), int, -1); + ACE_OSCALL_RETURN (::setrlimit ((ACE_HAS_RLIMIT_RESOURCE_ENUM) resource, rl), int, -1); # else - ACE_OSCALL_RETURN (::setrlimit ((ACE_HAS_RLIMIT_RESOURCE_ENUM) resource, - resource, - ), int, -1); -# endif /* ACE_HAS_NONCONST_SETRLIMIT */ -# else /* ACE_HAS_RLIMIT_RESOURCE_ENUM */ -# if defined (ACE_HAS_NONCONST_SETRLIMIT) - ACE_OSCALL_RETURN (::setrlimit (resource, const_cast<struct rlimit *>(rl) - ), int, -1); -# else ACE_OSCALL_RETURN (::setrlimit (resource, rl), int, -1); -# endif /* ACE_HAS_NONCONST_SETRLIMIT */ -# endif /* ACE_HAS_RLIMIT_RESOURCE_ENUM */ +# endif /* ACE_HAS_RLIMIT_RESOURCE_ENUM */ #endif /* ACE_LACKS_RLIMIT */ } |