summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_bfd.c
diff options
context:
space:
mode:
authorQuentin Young <qlyoung@cumulusnetworks.com>2019-05-03 21:42:59 +0200
committerQuentin Young <qlyoung@cumulusnetworks.com>2019-05-03 22:57:35 +0200
commit121f9dee7ce9f1b1b8a81f8bd97eed39ed87b477 (patch)
tree96db220e5aa1f111be363aafe8f5264a19970fed /ospfd/ospf_bfd.c
parentlib: define ZAPI_CALLBACK_ARGS macro (diff)
downloadfrr-121f9dee7ce9f1b1b8a81f8bd97eed39ed87b477.tar.xz
frr-121f9dee7ce9f1b1b8a81f8bd97eed39ed87b477.zip
*: use ZAPI_CALLBACK_ARGS macro for zapi handlers
This macro: - Marks ZAPI callbacks for readability - Standardizes argument names - Makes it simple to add ZAPI arguments in the future - Ensures proper types - Looks better - Shortens function declarations Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'ospfd/ospf_bfd.c')
-rw-r--r--ospfd/ospf_bfd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/ospfd/ospf_bfd.c b/ospfd/ospf_bfd.c
index 594735a08..42696b85d 100644
--- a/ospfd/ospf_bfd.c
+++ b/ospfd/ospf_bfd.c
@@ -141,8 +141,7 @@ static int ospf_bfd_reg_dereg_all_nbr(struct interface *ifp, int command)
* ospf_bfd_nbr_replay - Replay all the neighbors that have BFD enabled
* to zebra
*/
-static int ospf_bfd_nbr_replay(int command, struct zclient *zclient,
- zebra_size_t length, vrf_id_t vrf_id)
+static int ospf_bfd_nbr_replay(ZAPI_CALLBACK_ARGS)
{
struct listnode *inode, *node, *onode;
struct ospf *ospf;
@@ -195,8 +194,7 @@ static int ospf_bfd_nbr_replay(int command, struct zclient *zclient,
* connectivity if the BFD status changed to
* down.
*/
-static int ospf_bfd_interface_dest_update(int command, struct zclient *zclient,
- zebra_size_t length, vrf_id_t vrf_id)
+static int ospf_bfd_interface_dest_update(ZAPI_CALLBACK_ARGS)
{
struct interface *ifp;
struct ospf_interface *oi;