no C99 variable declarations just yet
This commit is contained in:
parent
c67ae03e96
commit
6e183316de
18
top.c
18
top.c
@ -1577,14 +1577,16 @@ static void before (char *me)
|
|||||||
Fieldstab[P_CPN].fmts = " %4u";
|
Fieldstab[P_CPN].fmts = " %4u";
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned pid_digits = get_pid_digits();
|
{
|
||||||
if(pid_digits<4) pid_digits=4;
|
static char pid_fmt[6];
|
||||||
static char pid_fmt[6];
|
unsigned pid_digits = get_pid_digits();
|
||||||
snprintf(pid_fmt, sizeof pid_fmt, " %%%uu", pid_digits);
|
if(pid_digits<4) pid_digits=4;
|
||||||
Fieldstab[P_PID].fmts = pid_fmt;
|
snprintf(pid_fmt, sizeof pid_fmt, " %%%uu", pid_digits);
|
||||||
Fieldstab[P_PID].head = " PID" + 10 - pid_digits;
|
Fieldstab[P_PID].fmts = pid_fmt;
|
||||||
Fieldstab[P_PPD].fmts = pid_fmt;
|
Fieldstab[P_PID].head = " PID" + 10 - pid_digits;
|
||||||
Fieldstab[P_PPD].head = " PPID" + 10 - pid_digits;
|
Fieldstab[P_PPD].fmts = pid_fmt;
|
||||||
|
Fieldstab[P_PPD].head = " PPID" + 10 - pid_digits;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user