aboutsummaryrefslogtreecommitdiffstats
path: root/src/Listen.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-02-10 20:30:10 +0100
committerMax Kellermann <max@duempel.org>2015-02-10 22:06:06 +0100
commit4e30e747390ac6bb6a6e5ededfbcdae937579393 (patch)
treebeb2d9acd687a62d476e796114efd8ea6b2f69ad /src/Listen.cxx
parent42890b9acf50c4406b61b3b37078c00ec79411fa (diff)
downloadmpd-4e30e747390ac6bb6a6e5ededfbcdae937579393.tar.gz
mpd-4e30e747390ac6bb6a6e5ededfbcdae937579393.tar.xz
mpd-4e30e747390ac6bb6a6e5ededfbcdae937579393.zip
net/SocketAddress: light wrapper for struct sockaddr
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);
}
};