commit | fd9afb29d3c5969179319af171f8d6181f10eeb0 | [log] [tgz] |
---|---|---|
author | Mansour Moufid <mansourmoufid@gmail.com> | Sun Feb 15 17:34:22 2015 -0500 |
committer | Manuel Pégourié-Gonnard <mpg@elzevir.fr> | Mon Feb 16 10:43:52 2015 +0000 |
tree | 684318a10417eb6d3485bea0d0ee016e5d9fcdf1 | |
parent | 671589d9a207fe20e8949eb7f9b15d86a3e9b5e2 [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)