summaryrefslogtreecommitdiff
path: root/sbin/pflogd/pflogd.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2007-06-02 20:38:59 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2007-06-02 20:38:59 +0000
commit0a8d67417a7a755d9ddf469f7b4d67c037151819 (patch)
treeba31120f5ecb5dd73d6d5724ab4d648ac995ff7b /sbin/pflogd/pflogd.c
parentdc5e5ea765deee4a8334258a9743d369be8a84b7 (diff)
do not shadow globals (in if_exists)
Diffstat (limited to 'sbin/pflogd/pflogd.c')
-rw-r--r--sbin/pflogd/pflogd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pflogd/pflogd.c b/sbin/pflogd/pflogd.c
index dbbbb358a00..12aa5d2817c 100644
--- a/sbin/pflogd/pflogd.c
+++ b/sbin/pflogd/pflogd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pflogd.c,v 1.41 2007/06/02 20:38:14 henning Exp $ */
+/* $OpenBSD: pflogd.c,v 1.42 2007/06/02 20:38:58 henning Exp $ */
/*
* Copyright (c) 2001 Theo de Raadt
@@ -193,7 +193,7 @@ set_pcap_filter(void)
}
int
-if_exists(char *interface)
+if_exists(char *ifname)
{
int s;
struct ifreq ifr;
@@ -202,7 +202,7 @@ if_exists(char *interface)
if ((s = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
err(1, "socket");
bzero(&ifr, sizeof(ifr));
- if (strlcpy(ifr.ifr_name, interface, sizeof(ifr.ifr_name)) >=
+ if (strlcpy(ifr.ifr_name, ifname, sizeof(ifr.ifr_name)) >=
sizeof(ifr.ifr_name))
errx(1, "main ifr_name: strlcpy");
ifr.ifr_data = (caddr_t)&ifrdat;