I want to elide void * casts in uses of functions with
pointers only when the function prototypes are declared
with the appropriate void * arguments.
Any idea/suggestion how to do this?
I tried variants of this but had no success:
@ func_1 @
type rtn_type;
identifier arg;
@@
static int func(void *arg)
{
...
}
@@
identifier func1.func;
expression e;
@@
- fn((void *)e)
+ fn(e)
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)