summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/ng_bpf.h
diff options
context:
space:
mode:
authoralfred <alfred@FreeBSD.org>2002-06-01 20:40:05 +0000
committeralfred <alfred@FreeBSD.org>2002-06-01 20:40:05 +0000
commitd7abc0aeaa8df9968610c72cd4df2949b22270fd (patch)
treeda13fa6c7e702c01a0e80c8ba027456b88a66857 /sys/netgraph/ng_bpf.h
parent0ac0431441763afda0b9a8129a7f9bd7f88335c5 (diff)
downloadFreeBSD-src-d7abc0aeaa8df9968610c72cd4df2949b22270fd.zip
FreeBSD-src-d7abc0aeaa8df9968610c72cd4df2949b22270fd.tar.gz
Declare a variable sized array within a structure using [] rather than [0]
to silence warnings.
Diffstat (limited to 'sys/netgraph/ng_bpf.h')
-rw-r--r--sys/netgraph/ng_bpf.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netgraph/ng_bpf.h b/sys/netgraph/ng_bpf.h
index cf6ce17..11c25ba 100644
--- a/sys/netgraph/ng_bpf.h
+++ b/sys/netgraph/ng_bpf.h
@@ -53,7 +53,7 @@ struct ng_bpf_hookprog {
char ifMatch[NG_HOOKLEN+1]; /* match dest hook */
char ifNotMatch[NG_HOOKLEN+1]; /* !match dest hook */
int32_t bpf_prog_len; /* #isns in program */
- struct bpf_insn bpf_prog[0]; /* bpf program */
+ struct bpf_insn bpf_prog[]; /* bpf program */
};
#define NG_BPF_HOOKPROG_SIZE(numInsn) \
OpenPOWER on IntegriCloud