From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH v2 1/5] eal: make syslog facility table const Date: Tue, 24 Apr 2018 09:58:04 -0700 Message-ID: <20180424165808.23292-2-stephen@networkplumber.org> References: <20180424165808.23292-1-stephen@networkplumber.org> Cc: Stephen Hemminger To: dev@dpdk.org Return-path: Received: from mail-pf0-f193.google.com (mail-pf0-f193.google.com [209.85.192.193]) by dpdk.org (Postfix) with ESMTP id 0AB344C57 for ; Tue, 24 Apr 2018 18:58:14 +0200 (CEST) Received: by mail-pf0-f193.google.com with SMTP id h69so12764549pfe.13 for ; Tue, 24 Apr 2018 09:58:13 -0700 (PDT) In-Reply-To: <20180424165808.23292-1-stephen@networkplumber.org> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" The mapping fro facility name to value can be const. Signed-off-by: Stephen Hemminger --- 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