From e2e210ddf07c843199e24d8ff28381e23c926136 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Fri, 7 Oct 2016 12:20:33 -0400 Subject: lib: Fix ordering issue in protocol names The protocol names and enum must be kept in the same order. Signed-off-by: Donald Sharp --- lib/log.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/log.c') 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", -- cgit v1.2.3