From 9f739445cd3deddd0343c3a8d5a981ede26bef30 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sat, 16 Dec 2006 23:49:13 +0000 Subject: inline strcmp(s, "-") [actually macro-ize it for now - gcc is too stupid] --- networking/libiproute/ipaddress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'networking/libiproute') diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index 2a267fef6..9fb08e6ba 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c @@ -681,7 +681,7 @@ static int ipaddr_modify(int cmd, int argc, char **argv) if (strcmp(*argv, "+") == 0) { brd_len = -1; } - else if (strcmp(*argv, "-") == 0) { + else if (LONE_DASH(*argv)) { brd_len = -2; } else { get_addr(&addr, *argv, req.ifa.ifa_family); -- cgit v1.2.3