diff options
Diffstat (limited to 'networking/libiproute/iproute.c')
-rw-r--r-- | networking/libiproute/iproute.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/networking/libiproute/iproute.c b/networking/libiproute/iproute.c index cc229c206..d7900d62e 100644 --- a/networking/libiproute/iproute.c +++ b/networking/libiproute/iproute.c | |||
@@ -654,7 +654,8 @@ static int iproute_get(int argc, char **argv) | |||
654 | char *odev = NULL; | 654 | char *odev = NULL; |
655 | int connected = 0; | 655 | int connected = 0; |
656 | int from_ok = 0; | 656 | int from_ok = 0; |
657 | const char *options[] = { "from", "iif", "oif", "dev", "notify", "connected", "to", 0 }; | 657 | static const char * const options[] = |
658 | { "from", "iif", "oif", "dev", "notify", "connected", "to", 0 }; | ||
658 | 659 | ||
659 | memset(&req, 0, sizeof(req)); | 660 | memset(&req, 0, sizeof(req)); |
660 | 661 | ||
@@ -813,9 +814,10 @@ static int iproute_get(int argc, char **argv) | |||
813 | 814 | ||
814 | int do_iproute(int argc, char **argv) | 815 | int do_iproute(int argc, char **argv) |
815 | { | 816 | { |
816 | const char *ip_route_commands[] = { "add", "append", "change", "chg", | 817 | static const char * const ip_route_commands[] = |
817 | "delete", "del", "get", "list", "show", "prepend", "replace", "test", "flush", 0 }; | 818 | { "add", "append", "change", "chg", "delete", "del", "get", |
818 | unsigned short command_num = 7; | 819 | "list", "show", "prepend", "replace", "test", "flush", 0 }; |
820 | int command_num = 7; | ||
819 | unsigned int flags = 0; | 821 | unsigned int flags = 0; |
820 | int cmd = RTM_NEWROUTE; | 822 | int cmd = RTM_NEWROUTE; |
821 | 823 | ||