aboutsummaryrefslogtreecommitdiff
path: root/networking/libiproute/ipaddress.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/ipaddress.c
parentd4f15e95d6a66847eee99fb4bb2131d0622ba8b5 (diff)
downloadbusybox-w32-2f0a5f947a6cff90e4e1caefff892ee235cbd381.tar.gz
busybox-w32-2f0a5f947a6cff90e4e1caefff892ee235cbd381.tar.bz2
busybox-w32-2f0a5f947a6cff90e4e1caefff892ee235cbd381.zip
restore compare_string_array new interface (make broken by landley)
Diffstat (limited to 'networking/libiproute/ipaddress.c')
-rw-r--r--networking/libiproute/ipaddress.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c
index 1c89f4a7d..c6115b356 100644
--- a/networking/libiproute/ipaddress.c
+++ b/networking/libiproute/ipaddress.c
@@ -443,7 +443,7 @@ extern int ipaddr_list_or_flush(int argc, char **argv, int flush)
443 } 443 }
444 444
445 while (argc > 0) { 445 while (argc > 0) {
446 const unsigned short option_num = compare_string_array(option, *argv); 446 const int option_num = compare_string_array(option, *argv);
447 switch (option_num) { 447 switch (option_num) {
448 case 0: /* to */ 448 case 0: /* to */
449 NEXT_ARG(); 449 NEXT_ARG();
@@ -658,7 +658,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv)
658 req.ifa.ifa_family = preferred_family; 658 req.ifa.ifa_family = preferred_family;
659 659
660 while (argc > 0) { 660 while (argc > 0) {
661 const unsigned short option_num = compare_string_array(option, *argv); 661 const int option_num = compare_string_array(option, *argv);
662 switch (option_num) { 662 switch (option_num) {
663 case 0: /* peer */ 663 case 0: /* peer */
664 case 1: /* remote */ 664 case 1: /* remote */
@@ -805,7 +805,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv)
805extern int do_ipaddr(int argc, char **argv) 805extern int do_ipaddr(int argc, char **argv)
806{ 806{
807 const char *commands[] = { "add", "delete", "list", "show", "lst", "flush", 0 }; 807 const char *commands[] = { "add", "delete", "list", "show", "lst", "flush", 0 };
808 unsigned short command_num = 2; 808 int command_num = 2;
809 809
810 if (*argv) { 810 if (*argv) {
811 command_num = compare_string_array(commands, *argv); 811 command_num = compare_string_array(commands, *argv);