From 086277b5913e3f30789fbe1e9036324fd73cfec7 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Thu, 15 Nov 2018 14:36:26 -0800 Subject: [PATCH] ip: make flag names const/static 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 7212f082..21985a5e 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[] = {