ip: make flag names const/static
The table of filter flags is only used in ipaddress Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
parent
d63786c642
commit
086277b591
|
|
@ -1149,7 +1149,7 @@ static unsigned int get_ifa_flags(struct ifaddrmsg *ifa,
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Mapping from argument to address flag mask */
|
/* Mapping from argument to address flag mask */
|
||||||
struct {
|
static const struct {
|
||||||
const char *name;
|
const char *name;
|
||||||
unsigned long value;
|
unsigned long value;
|
||||||
} ifa_flag_names[] = {
|
} ifa_flag_names[] = {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue