diff options
author | dwmalone <dwmalone@FreeBSD.org> | 2007-09-13 09:00:32 +0000 |
---|---|---|
committer | dwmalone <dwmalone@FreeBSD.org> | 2007-09-13 09:00:32 +0000 |
commit | c3b29b612d8405bcfbb6f23c9e9bbde3179d3bf2 (patch) | |
tree | 25134e9747c1f1b4b8b7ae0407cae7470d30460c | |
parent | 94a43e7b479723fb5163ed6d45db086920a64055 (diff) | |
download | FreeBSD-src-c3b29b612d8405bcfbb6f23c9e9bbde3179d3bf2.zip FreeBSD-src-c3b29b612d8405bcfbb6f23c9e9bbde3179d3bf2.tar.gz |
Make the type of the memory used by the BPF filter unsigned, so it
matches the BPF registers (which are the only thing that is assigned
to/from BPF memory). This is a pedantic change that shouldn't change
any behaviour.
PR: 115931
Submitted by: Matthew Luckie <mjl@luckie.org.nz>
Approved by: re (bmah)
MFC after: 3 weeks
-rw-r--r-- | sys/net/bpf_filter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/net/bpf_filter.c b/sys/net/bpf_filter.c index 74fb8ea..7ee4ef00 100644 --- a/sys/net/bpf_filter.c +++ b/sys/net/bpf_filter.c @@ -186,7 +186,7 @@ bpf_filter(pc, p, wirelen, buflen) { register u_int32_t A = 0, X = 0; register bpf_u_int32 k; - int32_t mem[BPF_MEMWORDS]; + u_int32_t mem[BPF_MEMWORDS]; if (pc == 0) /* |