eal: make syslog facility table const
authorStephen Hemminger <stephen@networkplumber.org>
Wed, 25 Apr 2018 03:17:46 +0000 (20:17 -0700)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 25 Apr 2018 10:10:52 +0000 (12:10 +0200)
The mapping for facility name to value can be const.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
lib/librte_eal/common/eal_common_options.c

index e1a1a3c..2d20ae7 100644 (file)
@@ -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[] = {