Move (now) unused variable declaration inside the block (now commented out).
This commit is contained in:
parent
a5847d5c27
commit
462574faf5
@ -891,7 +891,6 @@ mi_switch()
|
||||
{
|
||||
struct timeval new_switchtime;
|
||||
register struct proc *p = curproc; /* XXX */
|
||||
register struct rlimit *rlim;
|
||||
int x;
|
||||
|
||||
/*
|
||||
@ -947,7 +946,7 @@ mi_switch()
|
||||
*/
|
||||
if (p->p_stat != SZOMB && p->p_limit->p_cpulimit != RLIM_INFINITY &&
|
||||
p->p_runtime > p->p_limit->p_cpulimit) {
|
||||
rlim = &p->p_rlimit[RLIMIT_CPU];
|
||||
register struct rlimit *rlim = &p->p_rlimit[RLIMIT_CPU];
|
||||
if (p->p_runtime / (rlim_t)1000000 >= rlim->rlim_max) {
|
||||
killproc(p, "exceeded maximum CPU limit");
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user