Don't shadow globals.

Found by:       WARNS=6
MFC after:      3 days
This commit is contained in:
Yaroslav Tykhiy 2006-11-27 19:50:50 +00:00
parent da67074ec6
commit 04f7f23bf8
3 changed files with 7 additions and 7 deletions

View File

@ -83,7 +83,7 @@ bpf_flags(struct xbpf_d *bd, char *flagbuf)
} }
void void
bpf_stats(char *interface) bpf_stats(char *ifname)
{ {
struct xbpf_d *d, *bd; struct xbpf_d *d, *bd;
char *pname, flagbuf[12]; char *pname, flagbuf[12];
@ -111,7 +111,7 @@ bpf_stats(char *interface)
"Pid", "Netif", "Flags", "Recv", "Drop", "Match", "Sblen", "Pid", "Netif", "Flags", "Recv", "Drop", "Match", "Sblen",
"Hblen", "Command"); "Hblen", "Command");
for (d = &bd[0]; d < &bd[size / sizeof(*d)]; d++) { 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; continue;
bpf_flags(d, flagbuf); bpf_flags(d, flagbuf);
pname = bpf_pidname(d->bd_pid); pname = bpf_pidname(d->bd_pid);

View File

@ -335,7 +335,7 @@ print_newipsecstats(const struct newipsecstat *newipsecstat)
} }
void void
ipsec_stats_new(u_long off, const char *name, int af __unused) ipsec_stats_new(u_long off, const char *name, int family __unused)
{ {
struct newipsecstat newipsecstat; struct newipsecstat newipsecstat;
@ -384,7 +384,7 @@ print_ahstats(const struct ahstat *ahstat)
} }
void void
ah_stats(u_long off, const char *name, int af __unused) ah_stats(u_long off, const char *name, int family __unused)
{ {
struct ahstat ahstat; struct ahstat ahstat;
@ -434,7 +434,7 @@ print_espstats(const struct espstat *espstat)
} }
void void
esp_stats(u_long off, const char *name, int af __unused) esp_stats(u_long off, const char *name, int family __unused)
{ {
struct espstat espstat; struct espstat espstat;
@ -479,7 +479,7 @@ print_ipcompstats(const struct ipcompstat *ipcompstat)
} }
void void
ipcomp_stats(u_long off, const char *name, int af __unused) ipcomp_stats(u_long off, const char *name, int family __unused)
{ {
struct ipcompstat ipcompstat; struct ipcompstat ipcompstat;

View File

@ -120,7 +120,7 @@ pfkey_msgtype_names(int x)
} }
void void
pfkey_stats(u_long off, const char *name, int af __unused) pfkey_stats(u_long off, const char *name, int family __unused)
{ {
struct pfkeystat pfkeystat; struct pfkeystat pfkeystat;
unsigned first, type; unsigned first, type;