From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stephen Hemminger Subject: [PATCH iproute2 08/22] ip: make flag names const/static Date: Thu, 15 Nov 2018 14:36:26 -0800 Message-ID: <20181115223640.411-9-stephen@networkplumber.org> References: <20181115223640.411-1-stephen@networkplumber.org> Cc: Stephen Hemminger To: netdev@vger.kernel.org Return-path: Received: from mail-pf1-f169.google.com ([209.85.210.169]:39579 "EHLO mail-pf1-f169.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727195AbeKPIqe (ORCPT ); Fri, 16 Nov 2018 03:46:34 -0500 Received: by mail-pf1-f169.google.com with SMTP id c72so5690767pfc.6 for ; Thu, 15 Nov 2018 14:36:50 -0800 (PST) In-Reply-To: <20181115223640.411-1-stephen@networkplumber.org> Sender: netdev-owner@vger.kernel.org List-ID: The table of filter flags is only used in ipaddress Signed-off-by: Stephen Hemminger --- ip/ipaddress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ip/ipaddress.c b/ip/ipaddress.c index cd8cc76a3473..2671c4e162e3 100644 --- a/ip/ipaddress.c +++ b/ip/ipaddress.c @@ -1149,7 +1149,7 @@ static unsigned int get_ifa_flags(struct ifaddrmsg *ifa, } /* Mapping from argument to address flag mask */ -struct { +static const struct { const char *name; unsigned long value; } ifa_flag_names[] = { -- 2.17.1