aboutsummaryrefslogtreecommitdiffstats
path: root/src/client_process.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-03 10:33:04 +0100
committerMax Kellermann <max@duempel.org>2013-01-03 11:16:18 +0100
commit70b87f2eb620bdf1d7e07141914feb2316794fb3 (patch)
tree427aba509182a185263e00e222c4ee7b0fd0eb87 /src/client_process.c
parent94b2ee627c06679eb2622f2ac2e2fb0240fbab3c (diff)
downloadmpd-70b87f2eb620bdf1d7e07141914feb2316794fb3.tar.gz
mpd-70b87f2eb620bdf1d7e07141914feb2316794fb3.tar.xz
mpd-70b87f2eb620bdf1d7e07141914feb2316794fb3.zip
client: convert to C++
Diffstat (limited to '')
-rw-r--r--src/ClientProcess.cxx (renamed from src/client_process.c)10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/client_process.c b/src/ClientProcess.cxx
index 7217b35ab..284c4d862 100644
--- a/src/client_process.c
+++ b/src/ClientProcess.cxx
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2003-2011 The Music Player Daemon Project
+ * Copyright (C) 2003-2013 The Music Player Daemon Project
* http://www.musicpd.org
*
* This program is free software; you can redistribute it and/or modify
@@ -18,9 +18,9 @@
*/
#include "config.h"
-#include "client_internal.h"
-#include "protocol/result.h"
-#include "AllCommands.h"
+#include "ClientInternal.hxx"
+#include "protocol/Result.hxx"
+#include "AllCommands.hxx"
#include <string.h>
@@ -35,7 +35,7 @@ client_process_command_list(struct client *client, bool list_ok, GSList *list)
unsigned num = 0;
for (GSList *cur = list; cur != NULL; cur = g_slist_next(cur)) {
- char *cmd = cur->data;
+ char *cmd = (char *)cur->data;
g_debug("command_process_list: process command \"%s\"",
cmd);