diff options
| author | Bruce Richardson <[email protected]> | 2022-06-03 12:16:23 +0100 |
|---|---|---|
| committer | David Marchand <[email protected]> | 2022-06-07 16:44:21 +0200 |
| commit | 013b4c52c708dc8fed079ff05fbe66f475365586 (patch) | |
| tree | e5c1c6bf8df38d0dcf798816bae61d724181d2aa /lib/ipsec | |
| parent | beeed9d92aca54f9e7a3881a14af2528bb227926 (diff) | |
replace zero-length arrays with flexible ones
This patch replaces instances of zero-sized arrays i.e. those at the end
of structures with "[0]" with the more standard syntax of "[]".
Replacement was done using coccinelle script, with some revert and
cleanup of whitespace afterwards.
Signed-off-by: Bruce Richardson <[email protected]>
Acked-by: Morten Brørup <[email protected]>
Acked-by: Stephen Hemminger <[email protected]>
Acked-by: Hemant Agrawal <[email protected]>
Diffstat (limited to 'lib/ipsec')
| -rw-r--r-- | lib/ipsec/sa.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ipsec/sa.h b/lib/ipsec/sa.h index 46f9a4df5b..ce4af8ceb2 100644 --- a/lib/ipsec/sa.h +++ b/lib/ipsec/sa.h @@ -59,7 +59,7 @@ union sym_op_data { struct replay_sqn { rte_rwlock_t rwl; uint64_t sqn; - __extension__ uint64_t window[0]; + __extension__ uint64_t window[]; }; /*IPSEC SA supported algorithms */ |
