diff options
author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-09-20 09:45:02 +0200 |
---|---|---|
committer | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-09-20 09:45:02 +0200 |
commit | fd283bd250d9a6246f4405a7ad05438a96b8d951 (patch) | |
tree | 241eb968c43cd434133bc30e3ac52e9248717a6b /tools | |
parent | Merge pull request #11958 from AbhishekNR/ttable_show (diff) | |
download | frr-fd283bd250d9a6246f4405a7ad05438a96b8d951.tar.xz frr-fd283bd250d9a6246f4405a7ad05438a96b8d951.zip |
bgpd: Use route_map_result_t for route_map_apply() as return type
Signed-off-by: Donatas Abraitis <donatas@opensourcerouting.org>
Diffstat (limited to 'tools')
-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 000000000..ccca619d7 --- /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) |