mirror of
https://github.com/opnsense/src.git
synced 2026-06-03 22:02:58 -04:00
pfctl: remove set but unused variable
In pfctl_show_ifaces() `i` is set, but never used. Remove it.
Sponsored by: Rubicon Communications, LLC ("Netgate")
This commit is contained in:
parent
9f1beeaed4
commit
1be25bdb73
1 changed files with 0 additions and 2 deletions
|
|
@ -585,7 +585,6 @@ pfctl_show_ifaces(const char *filter, int opts)
|
|||
{
|
||||
struct pfr_buffer b;
|
||||
struct pfi_kif *p;
|
||||
int i = 0;
|
||||
|
||||
bzero(&b, sizeof(b));
|
||||
b.pfrb_type = PFRB_IFACES;
|
||||
|
|
@ -598,7 +597,6 @@ pfctl_show_ifaces(const char *filter, int opts)
|
|||
}
|
||||
if (b.pfrb_size <= b.pfrb_msize)
|
||||
break;
|
||||
i++;
|
||||
}
|
||||
if (opts & PF_OPT_SHOWALL)
|
||||
pfctl_print_title("INTERFACES:");
|
||||
|
|
|
|||
Loading…
Reference in a new issue