mirror of
http://git.haproxy.org/git/haproxy.git
synced 2026-02-04 08:43:40 +02: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:
committed by
Willy Tarreau
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
|
||||
)
|
||||
(...)
|
||||
Reference in New Issue
Block a user