1
0
mirror of http://git.haproxy.org/git/haproxy.git/ synced 2025-04-18 13:05:38 +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:
Tim Duesterhus 2021-09-15 13:58:47 +02:00 committed by Willy Tarreau
parent ec4a8754da
commit ecf55968a1

View File

@ -0,0 +1,11 @@
@@
type T;
@@
- (T*)
(
malloc
|
calloc
)
(...)