From d7abc0aeaa8df9968610c72cd4df2949b22270fd Mon Sep 17 00:00:00 2001 From: alfred Date: Sat, 1 Jun 2002 20:40:05 +0000 Subject: Declare a variable sized array within a structure using [] rather than [0] to silence warnings. --- sys/netgraph/ng_bpf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/netgraph/ng_bpf.h') 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) \ -- cgit v1.1