diff options
Diffstat (limited to 'networking/libiproute/rtm_map.c')
-rw-r--r-- | networking/libiproute/rtm_map.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/networking/libiproute/rtm_map.c b/networking/libiproute/rtm_map.c index 593017bf1..96b2d1791 100644 --- a/networking/libiproute/rtm_map.c +++ b/networking/libiproute/rtm_map.c | |||
@@ -51,16 +51,16 @@ const char *rtnl_rtntype_n2a(int id, char *buf, int len) | |||
51 | 51 | ||
52 | int rtnl_rtntype_a2n(int *id, char *arg) | 52 | int rtnl_rtntype_a2n(int *id, char *arg) |
53 | { | 53 | { |
54 | static const char * const keywords[] = { | 54 | static const char keywords[] = |
55 | "local", "nat", "broadcast", "brd", "anycast", | 55 | "local\0""nat\0""broadcast\0""brd\0""anycast\0" |
56 | "multicast", "prohibit", "unreachable", "blackhole", | 56 | "multicast\0""prohibit\0""unreachable\0""blackhole\0" |
57 | "xresolve", "unicast", "throw", NULL | 57 | "xresolve\0""unicast\0""throw\0"; |
58 | }; | 58 | enum { |
59 | enum { ARG_local = 1, ARG_nat, ARG_broadcast, ARG_brd, ARG_anycast, | 59 | ARG_local = 1, ARG_nat, ARG_broadcast, ARG_brd, ARG_anycast, |
60 | ARG_multicast, ARG_prohibit, ARG_unreachable, ARG_blackhole, | 60 | ARG_multicast, ARG_prohibit, ARG_unreachable, ARG_blackhole, |
61 | ARG_xresolve, ARG_unicast, ARG_throw | 61 | ARG_xresolve, ARG_unicast, ARG_throw |
62 | }; | 62 | }; |
63 | const smalluint key = index_in_substr_array(keywords, arg) + 1; | 63 | const smalluint key = index_in_substrings(keywords, arg) + 1; |
64 | char *end; | 64 | char *end; |
65 | unsigned long res; | 65 | unsigned long res; |
66 | 66 | ||