diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2014-07-12 11:27:46 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2014-07-12 11:27:46 +0000 |
commit | a63f8f4bad1bb64fc119bd4004a580ab80525886 (patch) | |
tree | 0ada07fd97ae2001874b417ee9ebff2be5d3866b /sys | |
parent | a589bfc4bd48ed1f31f63e7b7e3ad86f32a301fa (diff) |
sizeof(afh), afh being uint32, is cooler than literal "4"
spotted by Kent R. Spillner <kspillner acm org>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/net/bpf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net/bpf.c b/sys/net/bpf.c index 6c50df8b71a..a8bbb5ac386 100644 --- a/sys/net/bpf.c +++ b/sys/net/bpf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf.c,v 1.101 2014/07/10 11:48:14 henning Exp $ */ +/* $OpenBSD: bpf.c,v 1.102 2014/07/12 11:27:45 henning Exp $ */ /* $NetBSD: bpf.c,v 1.33 1997/02/21 23:59:35 thorpej Exp $ */ /* @@ -1308,7 +1308,7 @@ bpf_mtap_af(caddr_t arg, u_int32_t af, struct mbuf *m, u_int direction) u_int32_t afh; afh = htonl(af); - bpf_mtap_hdr(arg, (caddr_t)&afh, 4, m, direction, NULL); + bpf_mtap_hdr(arg, (caddr_t)&afh, sizeof(afh), m, direction, NULL); } /* |