git.droids-corp.org
/
dpdk.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
test/crypto-perf: support SDAP for PDCP operations
[dpdk.git]
/
devtools
/
cocci
/
zero_length_array.cocci
1
// Replace zero-length array members with []
2
@@
3
identifier st, member, arr;
4
type T1, T2;
5
@@
6
struct st {
7
...
8
T1 member;
9
- T2 arr[0];
10
+ T2 arr[];
11
};
12
@@
13
identifier st, member, arr, id;
14
type T1, T2;
15
@@
16
struct st {
17
...
18
T1 member;
19
- T2 arr[0];
20
+ T2 arr[];
21
} id;