Declare a variable sized array within a structure using [] rather than [0]

to silence warnings.
This commit is contained in:
Alfred Perlstein 2002-06-01 20:40:05 +00:00
parent 50225e2f48
commit f3bfd2edaf
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97722

View File

@ -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) \