mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-21 18:10:47 -04:00
DEV: coccinelle: Add xalloc_cast.cocci
This remove's C++ style casts from the return value of malloc/calloc.
see 403fd722ac
This commit is contained in:
parent
ec4a8754da
commit
ecf55968a1
1 changed files with 11 additions and 0 deletions
11
dev/coccinelle/xalloc_cast.cocci
Normal file
11
dev/coccinelle/xalloc_cast.cocci
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
@@
|
||||
type T;
|
||||
@@
|
||||
|
||||
- (T*)
|
||||
(
|
||||
malloc
|
||||
|
|
||||
calloc
|
||||
)
|
||||
(...)
|
||||
Loading…
Reference in a new issue