diff options
author | David Lamparter <equinox@opensourcerouting.org> | 2016-12-07 17:24:05 +0100 |
---|---|---|
committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-09 17:36:25 +0100 |
commit | 52c6b0e20a94e29126e3ddb180704d9d4c87e14f (patch) | |
tree | b3b6f93bac172c24c738152991ff22ffbb66c96f /tools/vty_index.sh | |
parent | *: coccinelle-replace vty->index (diff) | |
download | frr-52c6b0e20a94e29126e3ddb180704d9d4c87e14f.tar.xz frr-52c6b0e20a94e29126e3ddb180704d9d4c87e14f.zip |
*: fix remaining vty->index & add coccinelle patch
Fix instances that the coccinelle patch didn't catch (or which
coccinelle couldn't parse), and add the patch file for future posterity
(and application to yet-unmerged branches).
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to '')
-rwxr-xr-x | tools/vty_index.sh | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/vty_index.sh b/tools/vty_index.sh new file mode 100755 index 000000000..0ac8bfb34 --- /dev/null +++ b/tools/vty_index.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +sed -e '1istatic void bgp_debug_clear_updgrp_update_dbg(struct bgp *bgp);' -i \ + bgpd/bgp_debug.c +sed -e 's%^#if 0%#if 1 /* 0 */%' -i \ + ospfd/ospf_vty.c \ + ospf6d/ospf6_top.c \ + # +spatch \ + --sp-file tools/vty_index.cocci \ + --macro-file tools/cocci.h \ + --all-includes -I . -I lib \ + --use-gitgrep --dir . --in-place + +sed -e 's%^#if 1 /\* 0 \*/%#if 0%' -i \ + ospfd/ospf_vty.c \ + ospf6d/ospf6_top.c \ + # +sed -e '1d' -i \ + bgpd/bgp_debug.c + |