From 9b36c4bf750193c7e5c0d7f637f36e024a23a206 Mon Sep 17 00:00:00 2001 From: David Gwynne Date: Thu, 18 Sep 2014 10:44:38 +0000 Subject: ansify function declaration things. ok mpi@ henning@ krw@ --- sys/net/bpf_filter.c | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) (limited to 'sys/net') diff --git a/sys/net/bpf_filter.c b/sys/net/bpf_filter.c index 8335be30f94..72c2d3e0ac2 100644 --- a/sys/net/bpf_filter.c +++ b/sys/net/bpf_filter.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bpf_filter.c,v 1.24 2011/02/13 22:41:10 canacar Exp $ */ +/* $OpenBSD: bpf_filter.c,v 1.25 2014/09/18 10:44:37 dlg Exp $ */ /* $NetBSD: bpf_filter.c,v 1.12 1996/02/13 22:00:00 christos Exp $ */ /* @@ -88,10 +88,7 @@ int bpf_m_xword(struct mbuf *, u_int32_t, int *); int bpf_m_xhalf(struct mbuf *, u_int32_t, int *); int -bpf_m_xword(m, k, err) - struct mbuf *m; - u_int32_t k; - int *err; +bpf_m_xword(struct mbuf *m, u_int32_t k, int *err) { int len; u_char *cp, *np; @@ -123,10 +120,7 @@ bpf_m_xword(m, k, err) } int -bpf_m_xhalf(m, k, err) - struct mbuf *m; - u_int32_t k; - int *err; +bpf_m_xhalf(struct mbuf *m, u_int32_t k, int *err) { int len; u_char *cp; @@ -155,11 +149,7 @@ bpf_m_xhalf(m, k, err) * buflen is the amount of data present */ u_int -bpf_filter(pc, p, wirelen, buflen) - struct bpf_insn *pc; - u_char *p; - u_int wirelen; - u_int buflen; +bpf_filter(struct bpf_insn *pc, u_char *p, u_int wirelen, u_int buflen) { u_int32_t A = 0, X = 0; u_int32_t k; @@ -485,9 +475,7 @@ bpf_filter(pc, p, wirelen, buflen) * Otherwise, a bogus program could easily crash the system. */ int -bpf_validate(f, len) - struct bpf_insn *f; - int len; +bpf_validate(struct bpf_insn *f, int len) { u_int i, from; struct bpf_insn *p; -- cgit v1.2.3