mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-21 01:03:42 +00:00
Declare a variable sized array within a structure using [] rather than [0]
to silence warnings.
This commit is contained in:
parent
50225e2f48
commit
f3bfd2edaf
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=97722
|
@ -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) \
|
||||
|
|
Loading…
Reference in a new issue