aboutsummaryrefslogtreecommitdiffstats
path: root/src/UpdateGlue.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/UpdateGlue.cxx (renamed from src/update.c)16
1 files changed, 9 insertions, 7 deletions
diff --git a/src/update.c b/src/UpdateGlue.cxx
index e47db8f09..203f16b76 100644
--- a/src/update.c
+++ b/src/UpdateGlue.cxx
@@ -18,18 +18,20 @@
*/
#include "config.h"
-#include "update.h"
-#include "update_queue.h"
-#include "update_walk.h"
-#include "update_remove.h"
-#include "update.h"
+#include "UpdateGlue.hxx"
+#include "UpdateQueue.hxx"
+#include "UpdateWalk.hxx"
+#include "UpdateRemove.hxx"
+
+extern "C" {
#include "database.h"
#include "mapper.h"
#include "playlist.h"
#include "event_pipe.h"
-#include "update.h"
#include "idle.h"
#include "stats.h"
+}
+
#include "Main.hxx"
#include "mpd_error.h"
@@ -65,7 +67,7 @@ isUpdatingDB(void)
static void * update_task(void *_path)
{
- const char *path = _path;
+ const char *path = (const char *)_path;
if (path != NULL && *path != 0)
g_debug("starting: %s", path);