mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-15 12:54:27 +00:00
procstat: Remove set but unused variable.
This commit is contained in:
parent
e8f740fbc2
commit
660d6c5c3d
|
@ -267,10 +267,9 @@ width_capability(cap_rights_t *rightsp)
|
|||
static void
|
||||
print_capability(cap_rights_t *rightsp, u_int capwidth)
|
||||
{
|
||||
u_int count, i, width;
|
||||
u_int count, i;
|
||||
|
||||
count = 0;
|
||||
width = 0;
|
||||
for (i = width_capability(rightsp); i < capwidth; i++) {
|
||||
if (i != 0)
|
||||
xo_emit(" ");
|
||||
|
@ -282,9 +281,6 @@ print_capability(cap_rights_t *rightsp, u_int capwidth)
|
|||
if (cap_rights_is_set(rightsp, cap_desc[i].cd_right)) {
|
||||
xo_emit("{D:/%s}{l:capabilities/%s}", count ? "," : "",
|
||||
cap_desc[i].cd_desc);
|
||||
width += strlen(cap_desc[i].cd_desc);
|
||||
if (count)
|
||||
width++;
|
||||
count++;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue