summaryrefslogtreecommitdiffstats
path: root/lib/vty.c
diff options
context:
space:
mode:
authorChris Hall (GMCH) <chris.hall@highwayman.com>2009-12-02 17:11:35 +0000
committerChris Hall (GMCH) <chris.hall@highwayman.com>2009-12-02 17:11:35 +0000
commit8364e12dd2737cf77a4e3ead7c3d7bb9cc684010 (patch)
treebbcf4243478504ad6d5c6c9183ba7a81a8118b7a /lib/vty.c
parentdb597018b8c47208e4139b75fdcd798505695ea8 (diff)
parent1e2ad204c4c72cb3ffa73864154c96047da8cad4 (diff)
downloadquagga-8364e12dd2737cf77a4e3ead7c3d7bb9cc684010.tar.bz2
quagga-8364e12dd2737cf77a4e3ead7c3d7bb9cc684010.tar.xz
Merge branch 'pthreads' of /git/quagga.euro-ix into pthreads
Diffstat (limited to 'lib/vty.c')
-rw-r--r--lib/vty.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/vty.c b/lib/vty.c
index 3bf7eb55..7ed2dba7 100644
--- a/lib/vty.c
+++ b/lib/vty.c
@@ -440,10 +440,7 @@ vty_command (struct vty *vty, char *buf)
ret = cmd_execute_command (vline, vty, NULL, 0);
/* Get the name of the protocol if any */
- if (zlog_default)
- protocolname = zlog_proto_names[zlog_default->protocol];
- else
- protocolname = zlog_proto_names[ZLOG_NONE];
+ protocolname = zlog_get_proto_name(NULL);
#ifdef CONSUMED_TIME_CHECK
GETRUSAGE(&after);