aboutsummaryrefslogtreecommitdiffstats
path: root/src/Listen.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-04-17 22:58:33 +0200
committerMax Kellermann <max@duempel.org>2013-04-17 23:52:58 +0200
commitb2d3d15e978aef2566a1bdae435d71cb326dec4d (patch)
tree769550ce5e624915b9d3129793624583474604ba /src/Listen.cxx
parent08dfd263ba496b0c1f6ddbe9b3eefa9a5cea57a4 (diff)
downloadmpd-b2d3d15e978aef2566a1bdae435d71cb326dec4d.tar.gz
mpd-b2d3d15e978aef2566a1bdae435d71cb326dec4d.tar.xz
mpd-b2d3d15e978aef2566a1bdae435d71cb326dec4d.zip
Main: move global variables to struct Instance
More preparations for multi-player support.
Diffstat (limited to '')
-rw-r--r--src/Listen.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Listen.cxx b/src/Listen.cxx
index 26c9e100d..659ed6bdf 100644
--- a/src/Listen.cxx
+++ b/src/Listen.cxx
@@ -20,6 +20,7 @@
#include "config.h"
#include "Listen.hxx"
#include "Main.hxx"
+#include "Instance.hxx"
#include "Client.hxx"
#include "conf.h"
#include "event/ServerSocket.hxx"
@@ -43,7 +44,7 @@ public:
private:
virtual void OnAccept(int fd, const sockaddr &address,
size_t address_length, int uid) {
- client_new(*main_loop, *global_partition,
+ client_new(*main_loop, *instance->partition,
fd, &address, address_length, uid);
}
};