summaryrefslogtreecommitdiffstats
path: root/tools/coccinelle/route_map_apply.cocci
blob: ccca619d7e88ad7846c3857de6d1b5ed91ad4702 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
@rmap@
identifier ret;
position p;
@@

int ret@p;
...
* ret = route_map_apply(...);

@script:python@
p << rmap.p;
@@

msg = "ERROR: Invalid type of return value variable for route_map_apply_ext()"
coccilib.report.print_report(p[0], msg)