diff options
| author | David Lamparter <equinox@diac24.net> | 2016-02-23 12:38:23 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2017-03-08 00:15:40 +0100 |
| commit | bf1013e6c4e05ba48e5b35192000123becdf426d (patch) | |
| tree | a20c87261562f02f648eddbd59ea568b6815273e /lib/vty.c | |
| parent | bb85d700d564ef836af88c9d17190c2c39b93e21 (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |
