summaryrefslogtreecommitdiff
path: root/lib/log.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2016-10-07 12:20:33 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2016-10-07 12:20:33 -0400
commite2e210ddf07c843199e24d8ff28381e23c926136 (patch)
tree4d347ba9ca352ff4cea49279c7fad492ac50c5ae /lib/log.c
parent83418577afb992deed55296008debaf3fcad74d5 (diff)
lib: Fix ordering issue in protocol names
The protocol names and enum must be kept in the same order. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'lib/log.c')
-rw-r--r--lib/log.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/log.c b/lib/log.c
index 49c69efc8a..192e569d96 100644
--- a/lib/log.c
+++ b/lib/log.c
@@ -41,6 +41,10 @@ static int logfile_fd = -1; /* Used in signal handler. */
struct zlog *zlog_default = NULL;
+/*
+ * This must be kept in the same order as the
+ * zlog_proto_t enum
+ */
const char *zlog_proto_names[] =
{
"NONE",