emacs/admin/coccinelle/alloc_cast.cocci

7 lines
138 B
Plaintext

// Remove redundant casts from memory allocation functions.
@@
type T;
@@
-(T *)
\(xmalloc\|xzalloc\|xrealloc\|xpalloc\|xnrealloc\)(...)