diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2014-09-18 10:44:38 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2014-09-18 10:44:38 +0000 |
commit | 9b36c4bf750193c7e5c0d7f637f36e024a23a206 (patch) | |
tree | 5847adc5a92b530c9a948e1581a19042b28af042 /sys/net | |
parent | 8fdca4477b571dd9e357aa2e44da0ba4c7cd3f7f (diff) |
ansify function declaration things.
ok mpi@ henning@ krw@
Diffstat (limited to 'sys/net')
-rw-r--r-- | sys/net/bpf_filter.c | 22 |
1 files changed, 5 insertions, 17 deletions
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; |