mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-20 07:14:06 +00:00
fix bogus cast in osf1_getrlimit/osf1_setrlimit
This commit is contained in:
parent
f6835fffeb
commit
2acbb2b129
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=67541
|
@ -399,7 +399,7 @@ osf1_getrlimit(p, uap)
|
|||
{
|
||||
struct __getrlimit_args /* {
|
||||
syscallarg(u_int) which;
|
||||
syscallarg(struct orlimit *) rlp;
|
||||
syscallarg(struct rlimit *) rlp;
|
||||
} */ a;
|
||||
|
||||
if (SCARG(uap, which) >= OSF1_RLIMIT_NLIMITS)
|
||||
|
@ -411,7 +411,7 @@ osf1_getrlimit(p, uap)
|
|||
SCARG(&a, which) = RLIMIT_NOFILE;
|
||||
else
|
||||
return (0);
|
||||
SCARG(&a, rlp) = (struct orlimit *)SCARG(uap, rlp);
|
||||
SCARG(&a, rlp) = (struct rlimit *)SCARG(uap, rlp);
|
||||
|
||||
return getrlimit(p, &a);
|
||||
}
|
||||
|
@ -424,7 +424,7 @@ osf1_setrlimit(p, uap)
|
|||
{
|
||||
struct __setrlimit_args /* {
|
||||
syscallarg(u_int) which;
|
||||
syscallarg(struct orlimit *) rlp;
|
||||
syscallarg(struct rlimit *) rlp;
|
||||
} */ a;
|
||||
|
||||
if (SCARG(uap, which) >= OSF1_RLIMIT_NLIMITS)
|
||||
|
@ -436,7 +436,7 @@ osf1_setrlimit(p, uap)
|
|||
SCARG(&a, which) = RLIMIT_NOFILE;
|
||||
else
|
||||
return (0);
|
||||
SCARG(&a, rlp) = (struct orlimit *)SCARG(uap, rlp);
|
||||
SCARG(&a, rlp) = (struct rlimit *)SCARG(uap, rlp);
|
||||
|
||||
return setrlimit(p, &a);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue