summaryrefslogtreecommitdiff
path: root/include/sockets.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/sockets.h')
-rw-r--r--include/sockets.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/sockets.h b/include/sockets.h
index 8fc675614..0e490ac24 100644
--- a/include/sockets.h
+++ b/include/sockets.h
@@ -85,12 +85,12 @@ class CoreExport cidr
{
sockaddrs addr;
Anope::string cidr_ip;
- unsigned char cidr_len;
+ unsigned short cidr_len;
public:
cidr(const Anope::string &ip);
cidr(const Anope::string &ip, unsigned char len);
Anope::string mask() const;
- bool match(sockaddrs &other);
+ bool match(const sockaddrs &other);
bool operator<(const cidr &other) const;
bool operator==(const cidr &other) const;