summaryrefslogtreecommitdiffstats
path: root/sys/net/if_pflog.c
diff options
context:
space:
mode:
authorchl <chl@openbsd.org>2013-11-16 00:36:01 +0000
committerchl <chl@openbsd.org>2013-11-16 00:36:01 +0000
commit3c6a2edfac7f00f76f11bb9cf7a94e62682e270f (patch)
tree57f12683e5a79ed0f6d659b702d11beb47e49a9b /sys/net/if_pflog.c
parentgetpwnam_r() and getpwuid_r() reopen the passwd even when called with (diff)
downloadwireguard-openbsd-3c6a2edfac7f00f76f11bb9cf7a94e62682e270f.tar.xz
wireguard-openbsd-3c6a2edfac7f00f76f11bb9cf7a94e62682e270f.zip
Remove dead assignments and now unused variables.
Found by LLVM/Clang Static Analyzer. ok henning@ mikeb@ bluhm@
Diffstat (limited to 'sys/net/if_pflog.c')
-rw-r--r--sys/net/if_pflog.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/net/if_pflog.c b/sys/net/if_pflog.c
index 5be313f307a..e5bda3371b3 100644
--- a/sys/net/if_pflog.c
+++ b/sys/net/if_pflog.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_pflog.c,v 1.57 2013/10/24 11:31:43 mpi Exp $ */
+/* $OpenBSD: if_pflog.c,v 1.58 2013/11/16 00:36:01 chl Exp $ */
/*
* The authors of this code are John Ioannidis (ji@tla.org),
* Angelos D. Keromytis (kermit@csd.uch.gr) and
@@ -310,7 +310,7 @@ pflog_bpfcopy(const void *src_arg, void *dst_arg, size_t len)
struct mbuf *m, *mp, *mhdr, *mptr;
struct pfloghdr *pfloghdr;
u_int count;
- u_char *dst, *mdst, *cp;
+ u_char *dst, *mdst;
u_short reason;
int afto, hlen, mlen, off;
union pf_headers {
@@ -417,7 +417,6 @@ pflog_bpfcopy(const void *src_arg, void *dst_arg, size_t len)
mp = m_getptr(m, hlen, &off);
if (mp != NULL) {
bcopy(mp, mptr, sizeof(*mptr));
- cp = mtod(mp, char *);
mptr->m_data += off;
mptr->m_len -= off;
mptr->m_flags &= ~M_PKTHDR;