diff options
| author | David Lamparter <equinox@diac24.net> | 2016-12-07 17:15:32 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2016-12-09 17:36:25 +0100 |
| commit | cdc2d7650764bda9b84c3a1c43f26b83fdcb767c (patch) | |
| tree | 4a6391d630d7d140b31a4bc4dc5bc89c749614eb /ospfd/ospf_bfd.c | |
| parent | 3c5070bec0a64918ae87b0992221b8e6c98ff136 (diff) | |
*: coccinelle-replace vty->index
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_bfd.c')
| -rw-r--r-- | ospfd/ospf_bfd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ospfd/ospf_bfd.c b/ospfd/ospf_bfd.c index b6c871b6e4..b4d50a6b9f 100644 --- a/ospfd/ospf_bfd.c +++ b/ospfd/ospf_bfd.c @@ -368,7 +368,7 @@ DEFUN (ip_ospf_bfd, "OSPF interface commands\n" "Enables BFD support\n") { - struct interface *ifp = (struct interface *) vty->index; + VTY_DECLVAR_CONTEXT(interface, ifp); struct ospf_if_params *params; struct bfd_info *bfd_info; @@ -393,10 +393,10 @@ DEFUN (ip_ospf_bfd_param, "Required min receive interval\n" "Desired min transmit interval\n") { + VTY_DECLVAR_CONTEXT(interface, ifp); int idx_number = 3; int idx_number_2 = 4; int idx_number_3 = 5; - struct interface *ifp = (struct interface *) vty->index; u_int32_t rx_val; u_int32_t tx_val; u_int8_t dm_val; @@ -424,7 +424,7 @@ DEFUN (no_ip_ospf_bfd, "Required min receive interval\n" "Desired min transmit interval\n") { - struct interface *ifp = (struct interface *)vty->index; + VTY_DECLVAR_CONTEXT(interface, ifp); struct ospf_if_params *params; assert (ifp); |
