X-Git-Url: https://jfr.im/git/irc/rqf/shadowircd.git/blobdiff_plain/21c56a6a37de1913cd45db0ab51dfc3171f270f3..377b98f0794834938a3fc1e5959236a7927d19d7:/src/match.c diff --git a/src/match.c b/src/match.c index 5d9e8fe..44de328 100644 --- a/src/match.c +++ b/src/match.c @@ -23,7 +23,7 @@ #include "config.h" #include "client.h" #include "ircd.h" -#include "irc_string.h" +#include "match.h" /* * Compare if a given string (name) matches the given @@ -364,8 +364,8 @@ int match_ips(const char *s1, const char *s2) else return 0; - inetpton(aftype, address, ipptr); - inetpton(aftype, mask, maskptr); + rb_inet_pton(aftype, address, ipptr); + rb_inet_pton(aftype, mask, maskptr); if (comp_with_mask(ipptr, maskptr, cidrlen)) return 1; else @@ -432,8 +432,8 @@ int match_cidr(const char *s1, const char *s2) else return 0; - inetpton(aftype, ip, ipptr); - inetpton(aftype, ipmask, maskptr); + rb_inet_pton(aftype, ip, ipptr); + rb_inet_pton(aftype, ipmask, maskptr); if (comp_with_mask(ipptr, maskptr, cidrlen) && match(mask, address)) return 1; else