summaryrefslogtreecommitdiffstats
path: root/ospfd/ospf_opaque.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2016-12-07 17:15:32 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2016-12-09 17:36:25 +0100
commitcdc2d7650764bda9b84c3a1c43f26b83fdcb767c (patch)
tree4a6391d630d7d140b31a4bc4dc5bc89c749614eb /ospfd/ospf_opaque.c
parentlib: make qobj NULL-safe/aware (diff)
downloadfrr-cdc2d7650764bda9b84c3a1c43f26b83fdcb767c.tar.xz
frr-cdc2d7650764bda9b84c3a1c43f26b83fdcb767c.zip
*: coccinelle-replace vty->index
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ospfd/ospf_opaque.c')
-rw-r--r--ospfd/ospf_opaque.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ospfd/ospf_opaque.c b/ospfd/ospf_opaque.c
index a1981be86..e43314779 100644
--- a/ospfd/ospf_opaque.c
+++ b/ospfd/ospf_opaque.c
@@ -769,7 +769,7 @@ DEFUN (capability_opaque,
"Enable specific OSPF feature\n"
"Opaque LSA\n")
{
- struct ospf *ospf = (struct ospf *) vty->index;
+ VTY_DECLVAR_CONTEXT(ospf, ospf);
if (!ospf)
return CMD_SUCCESS;
@@ -802,7 +802,7 @@ DEFUN (no_capability_opaque,
"Enable specific OSPF feature\n"
"Opaque LSA\n")
{
- struct ospf *ospf = (struct ospf *) vty->index;
+ VTY_DECLVAR_CONTEXT(ospf, ospf);
if (!ospf)
return CMD_SUCCESS;