summaryrefslogtreecommitdiffstats
path: root/isisd/isis_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 /isisd/isis_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 'isisd/isis_bfd.c')
-rw-r--r--isisd/isis_bfd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/isisd/isis_bfd.c b/isisd/isis_bfd.c
index 81976f8dd..a98c44eeb 100644
--- a/isisd/isis_bfd.c
+++ b/isisd/isis_bfd.c
@@ -92,8 +92,7 @@ static void bfd_adj_event(struct isis_adjacency *adj, struct prefix *dst,
isis_adj_state_change(adj, ISIS_ADJ_DOWN, "bfd session went down");
}
-static int isis_bfd_interface_dest_update(int command, struct zclient *zclient,
- zebra_size_t length, vrf_id_t vrf_id)
+static int isis_bfd_interface_dest_update(ZAPI_CALLBACK_ARGS)
{
struct interface *ifp;
struct prefix dst_ip;
@@ -138,8 +137,7 @@ static int isis_bfd_interface_dest_update(int command, struct zclient *zclient,
return 0;
}
-static int isis_bfd_nbr_replay(int command, struct zclient *zclient,
- zebra_size_t length, vrf_id_t vrf_id)
+static int isis_bfd_nbr_replay(ZAPI_CALLBACK_ARGS)
{
bfd_client_sendmsg(zclient, ZEBRA_BFD_CLIENT_REGISTER);