From: Stephen Hemminger Date: Wed, 25 Apr 2018 03:17:46 +0000 (-0700) Subject: eal: make syslog facility table const X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=34a5c2db564a32509c69e5113cf0ebfc272cb730;p=dpdk.git eal: make syslog facility table const The mapping for facility name to value can be const. Signed-off-by: Stephen Hemminger --- diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c index e1a1a3c563..2d20ae76c3 100644 --- a/lib/librte_eal/common/eal_common_options.c +++ b/lib/librte_eal/common/eal_common_options.c @@ -881,7 +881,7 @@ static int eal_parse_syslog(const char *facility, struct internal_config *conf) { int i; - static struct { + static const struct { const char *name; int value; } map[] = {