Fix up macro use in lim_cur
This commit is contained in:
parent
9bfddb3ac4
commit
dde5c031ed
@ -135,7 +135,7 @@ rlim_t lim_cur(struct thread *td, int which);
|
||||
int _which = (which); \
|
||||
if (__builtin_constant_p(which) && which != RLIMIT_DATA && \
|
||||
which != RLIMIT_STACK && which != RLIMIT_VMEM) { \
|
||||
_rlim = td->td_limit->pl_rlimit[which].rlim_cur; \
|
||||
_rlim = _td->td_limit->pl_rlimit[_which].rlim_cur; \
|
||||
} else { \
|
||||
_rlim = lim_cur(_td, _which); \
|
||||
} \
|
||||
|
Loading…
Reference in New Issue
Block a user