From 2f0a5f947a6cff90e4e1caefff892ee235cbd381 Mon Sep 17 00:00:00 2001 From: "\"Vladimir N. Oleynik\"" Date: Tue, 6 Dec 2005 12:00:39 +0000 Subject: restore compare_string_array new interface (make broken by landley) --- networking/libiproute/ipaddress.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'networking/libiproute/ipaddress.c') 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) } while (argc > 0) { - const unsigned short option_num = compare_string_array(option, *argv); + const int option_num = compare_string_array(option, *argv); switch (option_num) { case 0: /* to */ NEXT_ARG(); @@ -658,7 +658,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv) req.ifa.ifa_family = preferred_family; while (argc > 0) { - const unsigned short option_num = compare_string_array(option, *argv); + const int option_num = compare_string_array(option, *argv); switch (option_num) { case 0: /* peer */ case 1: /* remote */ @@ -805,7 +805,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv) extern int do_ipaddr(int argc, char **argv) { const char *commands[] = { "add", "delete", "list", "show", "lst", "flush", 0 }; - unsigned short command_num = 2; + int command_num = 2; if (*argv) { command_num = compare_string_array(commands, *argv); -- cgit v1.2.3