summaryrefslogtreecommitdiff
path: root/lib/vty.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@diac24.net>2016-02-23 12:38:23 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2017-03-08 00:15:40 +0100
commitbf1013e6c4e05ba48e5b35192000123becdf426d (patch)
treea20c87261562f02f648eddbd59ea568b6815273e /lib/vty.c
parentbb85d700d564ef836af88c9d17190c2c39b93e21 (diff)
lib: simplify protocol/log naming
The protocols enum serves no purpose other than adding potential for bugs and making it complicated to add a new protocol... nuke. Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 042c30757c..6501ca5cd8 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -458,9 +458,9 @@ vty_command (struct vty *vty, char *buf)
/* Get the name of the protocol if any */
if (zlog_default)
- protocolname = zlog_proto_names[zlog_default->protocol];
+ protocolname = zlog_default->protoname;
else
- protocolname = zlog_proto_names[ZLOG_NONE];
+ protocolname = "NONE";
#ifdef CONSUMED_TIME_CHECK
GETRUSAGE(&after);