if (1 != inet_pton (AF_INET, netmask, &a))
return 0;
len = 32;
- for (t = htonl (~a.s_addr); 0 != t; t >>= 1)
+ for (t = htonl (~a.s_addr); 0 != t; t >>= 1)
len--;
return len;
}
* bytes long.
*/
void
-GNUNET_REGEX_ipv6toregex (const struct in6_addr *ipv6,
- unsigned int prefixlen, char *rxstr)
+GNUNET_REGEX_ipv6toregex (const struct in6_addr *ipv6, unsigned int prefixlen,
+ char *rxstr)
{
iptobinstr (AF_INET6, ipv6, rxstr);
rxstr[prefixlen] = '\0';