From ff2000c206059d029f0a0542863565dfcef7d077 Mon Sep 17 00:00:00 2001 From: Guillaume Nault Date: Wed, 11 May 2016 13:13:06 +0200 Subject: iprange: replace UINT32_MAX by INADDR_BROADCAST This is equivalent, but INADDR_BROADCAST is more descriptive. Signed-off-by: Guillaume Nault --- accel-pppd/iprange.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'accel-pppd/iprange.c') diff --git a/accel-pppd/iprange.c b/accel-pppd/iprange.c index d2b896f1..593f493a 100644 --- a/accel-pppd/iprange.c +++ b/accel-pppd/iprange.c @@ -117,8 +117,7 @@ static int parse_iprange(const char *str, struct iprange_t **range) if (prefix_len == 0) goto disable; - mask = UINT32_MAX << (32 - prefix_len); - + mask = INADDR_BROADCAST << (32 - prefix_len); if (ipmin != (ipmin & mask)) { char buf[INET_ADDRSTRLEN] = { 0 }; -- cgit v1.2.3