diff options
Diffstat (limited to 'tools/coccinelle/route_map_apply.cocci')
-rw-r--r-- | tools/coccinelle/route_map_apply.cocci | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tools/coccinelle/route_map_apply.cocci b/tools/coccinelle/route_map_apply.cocci new file mode 100644 index 0000000..ccca619 --- /dev/null +++ b/tools/coccinelle/route_map_apply.cocci @@ -0,0 +1,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) |