aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJacob Erlbeck <jerlbeck@sysmocom.de>2013-09-10 09:07:31 +0200
committerHolger Hans Peter Freyther <holger@moiji-mobile.com>2013-09-10 11:04:00 +0200
commit2349721d801d63f450e585b0938f76abd5150e79 (patch)
tree7705c21afafa1731c2756acd06525da50a101856 /src
parent0c987bd83b2b23f3f125c74f4a653c2fd2ae8c92 (diff)
vty: Replace 'enum node_type' by 'int' for last_node
In this case the last_node variable may hold values that are not in enum node_type, so int is used instead.
Diffstat (limited to 'src')
-rw-r--r--src/vty/command.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vty/command.c b/src/vty/command.c
index df2ffeab..7f76ced2 100644
--- a/src/vty/command.c
+++ b/src/vty/command.c
@@ -2291,7 +2291,7 @@ gDEFUN(config_exit,
config_end_cmd, "end", "End current mode and change to enable mode.")
{
if (vty->node > ENABLE_NODE) {
- enum node_type last_node = CONFIG_NODE;
+ int last_node = CONFIG_NODE;
/* Repeatedly call go_parent until a top node is reached. */
while (vty->node > CONFIG_NODE) {