mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-22 05:22:58 +00: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
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 New Issue
Block a user