Hi gus,
I want to write a generic rule to delete a function call and che
relative code for checking it's return value.
shuch as the following 3 code snippets.
code 1:
ret = foo();
if (ret)
printf("err");
code 2:
ret = foo();
if (ret) {
printf("err");
}
code 3:
ret = foo();
if(ret) {
printf(a);
}else {
printf(b);
}
how to write the rule ?
thanks.
_______________________________________________
Cocci mailing list
[email protected]
http://lists.diku.dk/mailman/listinfo/cocci
(Web access from inside DIKUs LAN only)