aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iproute.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/libiproute/iproute.c')
-rw-r--r--networking/libiproute/iproute.c10
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)
char *odev = NULL;
int connected = 0;
int from_ok = 0;
- const char *options[] = { "from", "iif", "oif", "dev", "notify", "connected", "to", 0 };
+ static const char * const options[] =
+ { "from", "iif", "oif", "dev", "notify", "connected", "to", 0 };
memset(&req, 0, sizeof(req));
@@ -813,9 +814,10 @@ static int iproute_get(int argc, char **argv)
int do_iproute(int argc, char **argv)
{
- const char *ip_route_commands[] = { "add", "append", "change", "chg",
- "delete", "del", "get", "list", "show", "prepend", "replace", "test", "flush", 0 };
- unsigned short command_num = 7;
+ static const char * const ip_route_commands[] =
+ { "add", "append", "change", "chg", "delete", "del", "get",
+ "list", "show", "prepend", "replace", "test", "flush", 0 };
+ int command_num = 7;
unsigned int flags = 0;
int cmd = RTM_NEWROUTE;