From patchwork Wed Apr 25 03:17:46 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stephen Hemminger X-Patchwork-Id: 38855 X-Patchwork-Delegate: thomas@monjalon.net Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 096C32C12; Wed, 25 Apr 2018 05:17:59 +0200 (CEST) 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) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=YUg3ERrtnOZOa6V2ZrDnFUOrfrAonyN9OWw8l6ER5WE=; b=TGA8uDH14mVSmOftjlUEVDFCxMp4sAKM8y6podTCOCP9rPmViWUpGiJl46IL/2ZF0c 1/gaVp5I0CeXUTyGPswg8SMQ4IhUjZ6h2z6Olo+M1qvvC6Atg8fSDOoxP5eXaesHIDZj jwXFjUK/Qc9Tb8kXq45wMgxDrGJGutkyCaJMRTO+vOS4SGRD0hH29t76aUtFWuVxCa3Q iIm+0+g/ayhdfscmdDq+GG3FEyQuUVXKzN0zPHP5HJh76xrSTqvX8kLiBHBcxQlMIhM1 uIFYKFu6AFiv4CxfwXHnE1g2JQUIRwIv9/RY6fn+TFkHKpNL8O3i7QcUtmOn3yfaxG2V myyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=YUg3ERrtnOZOa6V2ZrDnFUOrfrAonyN9OWw8l6ER5WE=; b=YdgxKeAmR/5XHu9NNjSLyvZWzAy2lPnw96cinvmCPKg0PjTaz1TehmMds3U3jneEHN PDQOse2Vu8Unl5nTrSjghC7TDyN+EXPHAnQR+oFcSD3YfbJRTshg/OAbrAvzYo4DpvNt TunvdBSFtR8hJnvRuPHa5O1nz0KnCWBJ7nbkSy7WtwpUrqK3mK93IRsDKm/fIL1eHTMl k2bBsXzUWJxwova0P8ymbqj6nCyREETXXaMpZvHF/cG1UiA95XwQIwhMefhiAkJes1v8 qYoKir0BqZ/wch6olRd/Vy+5HJ5PGr6VxkE82t6gbDnQeU3H4ICVO73/OugKRFo3zZXu +ocA== X-Gm-Message-State: ALQs6tBxLalEWaNEV1GcaFzWzLp5ptkwXM1EV8WiqIfS8hU4WY4rcogi q+QU5G0ASGTzTg2zi9NpIIR3Vk5AGBY= X-Google-Smtp-Source: AIpwx4+UUwi/XmX2vMwMyUqol/VL3RcwdlWr0q/ZBkDYugm8ndBHxtgbV/F/o8V6by3pkSTJLBSgbg== X-Received: by 10.99.124.20 with SMTP id x20mr22506690pgc.161.1524626274212; Tue, 24 Apr 2018 20:17:54 -0700 (PDT) Received: from xeon-e3.lan (204-195-71-95.wavecable.com. [204.195.71.95]) by smtp.gmail.com with ESMTPSA id x5sm20137303pfh.115.2018.04.24.20.17.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 20:17:52 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 24 Apr 2018 20:17:46 -0700 Message-Id: <20180425031750.30973-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180425031750.30973-1-stephen@networkplumber.org> References: <20180425031750.30973-1-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH v3 1/5] eal: make syslog facility table const X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list 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[] = {