From 1e2018ce831654f5bf649c5ae4d2e9b003c5a52e Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 15 Jan 2013 10:11:08 +0100 Subject: Client: move connection functions into the class --- src/ClientNew.cxx | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/ClientNew.cxx') diff --git a/src/ClientNew.cxx b/src/ClientNew.cxx index 77eb33c8e..4a22ca368 100644 --- a/src/ClientNew.cxx +++ b/src/ClientNew.cxx @@ -149,13 +149,12 @@ client_new(Partition &partition, } void -client_close(Client *client) +Client::Close() { - client_list_remove(client); + client_list_remove(this); - client_set_expired(client); + SetExpired(); - g_log(G_LOG_DOMAIN, LOG_LEVEL_SECURE, - "[%u] closed", client->num); - delete client; + g_log(G_LOG_DOMAIN, LOG_LEVEL_SECURE, "[%u] closed", num); + delete this; } -- cgit v1.2.3