summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/bpf.c
diff options
context:
space:
mode:
authoryar <yar@FreeBSD.org>2006-11-27 19:50:50 +0000
committeryar <yar@FreeBSD.org>2006-11-27 19:50:50 +0000
commit97045cf6d0d5b678401de5177dd72825261fe07d (patch)
tree8e110c68de405a4d9a8e90b61a1baa610310290f /usr.bin/netstat/bpf.c
parentac0fbebe4ae682809c5875a529e92667006f0faa (diff)
downloadFreeBSD-src-97045cf6d0d5b678401de5177dd72825261fe07d.zip
FreeBSD-src-97045cf6d0d5b678401de5177dd72825261fe07d.tar.gz
Don't shadow globals.
Found by: WARNS=6 MFC after: 3 days
Diffstat (limited to 'usr.bin/netstat/bpf.c')
-rw-r--r--usr.bin/netstat/bpf.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/netstat/bpf.c b/usr.bin/netstat/bpf.c
index 9546ac0..f5cda6a 100644
--- a/usr.bin/netstat/bpf.c
+++ b/usr.bin/netstat/bpf.c
@@ -83,7 +83,7 @@ bpf_flags(struct xbpf_d *bd, char *flagbuf)
}
void
-bpf_stats(char *interface)
+bpf_stats(char *ifname)
{
struct xbpf_d *d, *bd;
char *pname, flagbuf[12];
@@ -111,7 +111,7 @@ bpf_stats(char *interface)
"Pid", "Netif", "Flags", "Recv", "Drop", "Match", "Sblen",
"Hblen", "Command");
for (d = &bd[0]; d < &bd[size / sizeof(*d)]; d++) {
- if (interface && strcmp(interface, d->bd_ifname) != 0)
+ if (ifname && strcmp(ifname, d->bd_ifname) != 0)
continue;
bpf_flags(d, flagbuf);
pname = bpf_pidname(d->bd_pid);
OpenPOWER on IntegriCloud