summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/modules.h4
-rw-r--r--include/socket.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/include/modules.h b/include/modules.h
index faefe9041..51cc37f3f 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -101,14 +101,14 @@ struct ModResult {
{
return !res;
}
- bool check(bool def)
+ bool check(bool def) const
{
return (res == 1 || (res == 0 && def));
}
/**
* Merges two results, preferring ALLOW to DENY
*/
- const ModResult operator+(const ModResult& r)
+ ModResult operator+(const ModResult& r) const
{
if (res == r.res || r.res == 0)
return *this;
diff --git a/include/socket.h b/include/socket.h
index f97630d04..5ca9fc18f 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -178,7 +178,7 @@ class CoreExport ListenSocketBase : public EventHandler
const std::string& GetDescription() { return desc; }
/** Get port number for socket
*/
- const int GetPort() { return bind_port; }
+ int GetPort() const { return bind_port; }
/** Get IP address socket is bound to
*/