summaryrefslogtreecommitdiff
path: root/ripd/ripd.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 /ripd/ripd.c
parent3c5070bec0a64918ae87b0992221b8e6c98ff136 (diff)
*: coccinelle-replace vty->index
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'ripd/ripd.c')
-rw-r--r--ripd/ripd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ripd/ripd.c b/ripd/ripd.c
index 36e8e6f274..29a444be43 100644
--- a/ripd/ripd.c
+++ b/ripd/ripd.c
@@ -2820,8 +2820,7 @@ DEFUN (router_rip,
return CMD_WARNING;
}
}
- vty->node = RIP_NODE;
- vty->index = rip;
+ VTY_PUSH_CONTEXT(RIP_NODE, rip);
return CMD_SUCCESS;
}