]> git.ipfire.org Git - thirdparty/iproute2.git/commitdiff
ip: make flag names const/static
authorStephen Hemminger <stephen@networkplumber.org>
Thu, 15 Nov 2018 22:36:26 +0000 (14:36 -0800)
committerStephen Hemminger <stephen@networkplumber.org>
Mon, 19 Nov 2018 19:42:44 +0000 (11:42 -0800)
The table of filter flags is only used in ipaddress

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
ip/ipaddress.c

index 7212f082b31b4554cff706f46c7cecabfc7628b3..21985a5ee6f3bb28d4a1528f7f29c2deee9fe703 100644 (file)
@@ -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[] = {