From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH v3 1/5] eal: make syslog facility table const Date: Tue, 24 Apr 2018 20:17:46 -0700 Message-ID: <20180425031750.30973-2-stephen@networkplumber.org> References: <20180425031750.30973-1-stephen@networkplumber.org> Cc: Stephen Hemminger To: dev@dpdk.org Return-path: Received: from mail-pg0-f68.google.com (mail-pg0-f68.google.com [74.125.83.68]) by dpdk.org (Postfix) with ESMTP id 7A7DC2BD5 for ; Wed, 25 Apr 2018 05:17:55 +0200 (CEST) Received: by mail-pg0-f68.google.com with SMTP id b5so12311549pgv.5 for ; Tue, 24 Apr 2018 20:17:55 -0700 (PDT) In-Reply-To: <20180425031750.30973-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 e1a1a3c5634b..2d20ae76c38f 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