From b2d3d15e978aef2566a1bdae435d71cb326dec4d Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 17 Apr 2013 22:58:33 +0200 Subject: Main: move global variables to struct Instance More preparations for multi-player support. --- src/Listen.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Listen.cxx') 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); } }; -- cgit v1.2.3