summaryrefslogtreecommitdiff
path: root/src/Listen.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Listen.cxx')
-rw-r--r--src/Listen.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Listen.cxx b/src/Listen.cxx
index 3ba368a0c..cf4b41352 100644
--- a/src/Listen.cxx
+++ b/src/Listen.cxx
@@ -23,6 +23,7 @@
#include "config/Param.hxx"
#include "config/ConfigGlobal.hxx"
#include "config/ConfigOption.hxx"
+#include "net/SocketAddress.hxx"
#include "event/ServerSocket.hxx"
#include "util/Error.hxx"
#include "util/Domain.hxx"
@@ -48,10 +49,9 @@ public:
:ServerSocket(_loop), partition(_partition) {}
private:
- void OnAccept(int fd, const sockaddr &address,
- size_t address_length, int uid) override {
+ void OnAccept(int fd, SocketAddress address, int uid) override {
client_new(GetEventLoop(), partition,
- fd, &address, address_length, uid);
+ fd, address, uid);
}
};