mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 17:40:04 +00:00
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>
This commit is contained in:
parent
83418577af
commit
e2e210ddf0
@ -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",
|
||||
|
@ -41,6 +41,10 @@
|
||||
* please use LOG_ERR instead.
|
||||
*/
|
||||
|
||||
/*
|
||||
* This must be kept in the same order as
|
||||
* zlog_proto_names[]
|
||||
*/
|
||||
typedef enum
|
||||
{
|
||||
ZLOG_NONE,
|
||||
@ -53,9 +57,9 @@ typedef enum
|
||||
ZLOG_OSPF6,
|
||||
ZLOG_LDP,
|
||||
ZLOG_ISIS,
|
||||
ZLOG_RFP,
|
||||
ZLOG_PIM,
|
||||
ZLOG_MASC
|
||||
ZLOG_MASC,
|
||||
ZLOG_RFP,
|
||||
} zlog_proto_t;
|
||||
|
||||
/* If maxlvl is set to ZLOG_DISABLED, then no messages will be sent
|
||||
|
Loading…
Reference in New Issue
Block a user