commit | bf66fbc8e2380717c1fab860cfc60c78582839dd | [log] [tgz] |
---|---|---|
author | Denis Vlasenko <vda.linux@googlemail.com> | Thu Dec 21 13:23:14 2006 +0000 |
committer | Denis Vlasenko <vda.linux@googlemail.com> | Thu Dec 21 13:23:14 2006 +0000 |
tree | 3ab3dd4df901851ff7f4345708592118766ba4aa | |
parent | 6910741067913d131d931b1e6424d3b8ed43e64f [diff] [blame] |
introduce LONE_CHAR (optimized strcmp with one-char string)
diff --git a/networking/libiproute/ipaddress.c b/networking/libiproute/ipaddress.c index 9fb08e6..e6130e4 100644 --- a/networking/libiproute/ipaddress.c +++ b/networking/libiproute/ipaddress.c
@@ -678,7 +678,7 @@ if (brd_len) { duparg("broadcast", *argv); } - if (strcmp(*argv, "+") == 0) { + if (LONE_CHAR(*argv, '+')) { brd_len = -1; } else if (LONE_DASH(*argv)) {