[dpdk-dev] [PATCH v2 1/5] eal: make syslog facility table const
Stephen Hemminger
stephen at networkplumber.org
Tue Apr 24 18:58:04 CEST 2018
The mapping fro facility name to value can be const.
Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
---
lib/librte_eal/common/eal_common_options.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c
index 40c5b26f3c1d..0e6adcb9ddb5 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[] = {
--
2.17.0
More information about the dev
mailing list