From mboxrd@z Thu Jan 1 00:00:00 1970 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) 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=8lAK+Q80PcIpn0hNQdNLl2b/+ek9fsPCd2RchkErlUQ=; b=uIvS0x1xeXN60XewP+SESQcFHmT067X+zLRXV8VQSqb6uYubsyclK+bHDveT9ajdwM NqYumhLLdMZMADxhimIkEGJa4ambw59V7VBKoIjX3TkJhsO06WisqSYr3mrdBjQMh87r nR540ms8hViHxFvaFVU475pg3bZMhEy9W39RmpW3X665ZYzAJvBsPvRGnniSog8ir+yW 2HUh7z+6DWE26u97bfF10gMpEeEqDhbGezzoXpBL066X1QTltBhwUeCAK4oZy4kexpkD TgMPOmz4CEsPh1wcdJNJkkQPSNwFwwtRcTXjLw+fE1GbY9tImj1tf8jgM1a7KSgtWEsX tdOA== 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=8lAK+Q80PcIpn0hNQdNLl2b/+ek9fsPCd2RchkErlUQ=; b=uIjZNgyMrVF8EgQHaIb6h66tKuYTdZmVjgMq69TMAVpil61RqD2kytYVvmv6uK9XVL YVAmRRT1kAZqvoLM+YW0l7CPgEuvkPBG5zWj9tCodTfRaJkm9vP85ytRH4LWlYLl3cHj 2u5ZcryOJDTdFy62LQ9hOrgO9ZstqBGIBogyar560RhTCHDqqpaT2ZzttU1iLeVTEfGu sGtIQ7Wp7/yER+JBkyCtG3ixJkVZ0mGKPe7GKSBqsp439LcJ4THQtIKC0alMpu54Qi+c qND/O7iDkPKrYYzrW34oCqByilFbAvubH7QdG9gJl1tBqO6KwCvRFXtFlTn4mSVdNLw8 SOhQ== X-Gm-Message-State: ALQs6tA14DesWVwN6VLTndo9crZ/AkWWfGzGSZKpCFlRNJwKmenWnRJJ Eb8pTPIhm9+FCE7QnAGhmRB1Idejafo= X-Google-Smtp-Source: AIpwx48iW67v0XTo5ksV+06rcet4mmZiyFE+6+/EM7+eNd33u1E3o8L/GXpbkfHNufGEjSS2quFzPQ== X-Received: by 10.98.93.153 with SMTP id n25mr15941076pfj.143.1524589092921; Tue, 24 Apr 2018 09:58:12 -0700 (PDT) Received: from xeon-e3.lan (204-195-71-95.wavecable.com. [204.195.71.95]) by smtp.gmail.com with ESMTPSA id a28sm19851114pfl.86.2018.04.24.09.58.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 24 Apr 2018 09:58:12 -0700 (PDT) From: Stephen Hemminger To: dev@dpdk.org Cc: Stephen Hemminger Date: Tue, 24 Apr 2018 09:58:04 -0700 Message-Id: <20180424165808.23292-2-stephen@networkplumber.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180424165808.23292-1-stephen@networkplumber.org> References: <20180424165808.23292-1-stephen@networkplumber.org> Subject: [dpdk-dev] [PATCH v2 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: , X-List-Received-Date: Tue, 24 Apr 2018 16:58:14 -0000 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