diff mbox series

[iproute2,08/22] ip: make flag names const/static

Message ID 20181115223640.411-9-stephen@networkplumber.org
State Accepted, archived
Delegated to: stephen hemminger
Headers show
Series misc cleanups | expand

Commit Message

Stephen Hemminger Nov. 15, 2018, 10:36 p.m. UTC
The table of filter flags is only used in ipaddress

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
---
 ip/ipaddress.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

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[] = {