]> git.puffer.fish Git - matthieu/frr.git/commit
bgpd: use void pointer to reduce code duplication
authorRenato Westphal <renato@opensourcerouting.org>
Wed, 28 Jul 2021 01:29:43 +0000 (22:29 -0300)
committerRenato Westphal <renato@opensourcerouting.org>
Tue, 23 Nov 2021 17:27:25 +0000 (14:27 -0300)
commit2391833ecfaebbbc863234f22436c4570efe7ce8
treea7c6dabbcde5e0733fcacc6d6b44ce07f15df209
parentdb58b09fea7b64453a243584aa0f8e0337767642
bgpd: use void pointer to reduce code duplication

There's no need to have different calls to bgp_show() when the only
difference is one argument that corresponds to a "void *" parameter.

Code duplication should be reduced to a minimum to avoid bugs like
the one fixed in the previous commit.

Signed-off-by: Renato Westphal <renato@opensourcerouting.org>
bgpd/bgp_route.c