commit | 5b535de47447d56cf02668ccb2609b4f03c9378f | [log] [tgz] |
---|---|---|
author | Mansour Moufid <mansourmoufid@gmail.com> | Sun Feb 15 17:34:22 2015 -0500 |
committer | Mansour Moufid <mansourmoufid@gmail.com> | Sun Feb 15 17:48:33 2015 -0500 |
tree | 4e4434572f5200cd7c427e1ef5cde0a767f80e35 | |
parent | 539d972a25954bf0b1e9de6f0b3baa54f1a7e3d6 [diff] [blame] |
Add a semantic patch to remove casts of malloc.
diff --git a/scripts/rm-malloc-cast.cocci b/scripts/rm-malloc-cast.cocci new file mode 100644 index 0000000..04893d9 --- /dev/null +++ b/scripts/rm-malloc-cast.cocci
@@ -0,0 +1,7 @@ +@rm_malloc_cast@ +expression x, n; +type T; +@@ + x = +- (T *) + polarssl_malloc(n)