aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/iproute.c
diff options
context:
space:
mode:
authorvodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-12-06 12:00:39 +0000
committervodz <vodz@69ca8d6d-28ef-0310-b511-8ec308f3f277>2005-12-06 12:00:39 +0000
commit7772c275be7480cb8424204debe5726fc4e9790a (patch)
tree37e1ec1e361da1347056461337e5be8e446e11a0 /networking/libiproute/iproute.c
parent07ed7a882813ffbab68dbba5fcd62e3507c47274 (diff)
downloadbusybox-w32-7772c275be7480cb8424204debe5726fc4e9790a.tar.gz
busybox-w32-7772c275be7480cb8424204debe5726fc4e9790a.tar.bz2
busybox-w32-7772c275be7480cb8424204debe5726fc4e9790a.zip
restore compare_string_array new interface (make broken by landley)
git-svn-id: svn://busybox.net/trunk/busybox@12690 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to '')
-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)
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
814int do_iproute(int argc, char **argv) 815int 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