aboutsummaryrefslogtreecommitdiffstats
path: root/src/ClientExpire.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-09 08:12:44 +0100
committerMax Kellermann <max@duempel.org>2013-01-09 08:12:44 +0100
commit2564f763d7c206f36d6c10c16b78590e4a47714d (patch)
tree39786632609607cce887b4fa5d55ce73dfd9e32d /src/ClientExpire.cxx
parent377a2b9e077d19501b89f4347afa78baa6c32f5f (diff)
downloadmpd-2564f763d7c206f36d6c10c16b78590e4a47714d.tar.gz
mpd-2564f763d7c206f36d6c10c16b78590e4a47714d.tar.xz
mpd-2564f763d7c206f36d6c10c16b78590e4a47714d.zip
ClientList: don't use GLib
Use std::list instead of GList.
Diffstat (limited to 'src/ClientExpire.cxx')
-rw-r--r--src/ClientExpire.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ClientExpire.cxx b/src/ClientExpire.cxx
index 36d54cda3..1e271c052 100644
--- a/src/ClientExpire.cxx
+++ b/src/ClientExpire.cxx
@@ -41,10 +41,8 @@ client_set_expired(Client *client)
}
static void
-client_check_expired_callback(gpointer data, G_GNUC_UNUSED gpointer user_data)
+client_check_expired_callback(Client *client, G_GNUC_UNUSED gpointer user_data)
{
- Client *client = (Client *)data;
-
if (client_is_expired(client)) {
g_debug("[%u] expired", client->num);
client_close(client);