aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iproute.c
diff options
context:
space:
mode:
author"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-12-06 12:00:39 +0000
committer"Vladimir N. Oleynik" <dzo@simtreas.ru>2005-12-06 12:00:39 +0000
commit2f0a5f947a6cff90e4e1caefff892ee235cbd381 (patch)
tree37e1ec1e361da1347056461337e5be8e446e11a0 /networking/libiproute/iproute.c
parentd4f15e95d6a66847eee99fb4bb2131d0622ba8b5 (diff)
downloadbusybox-2f0a5f947a6cff90e4e1caefff892ee235cbd381.tar.gz
restore compare_string_array new interface (make broken by landley)
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;