aboutsummaryrefslogtreecommitdiffstats
path: root/src/InotifyQueue.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-02 19:22:15 +0100
committerMax Kellermann <max@duempel.org>2013-01-02 19:22:15 +0100
commita654f146d1b39a363cb10853a7670ef099570e54 (patch)
tree2c171646333f0b529655b57bee2c1eb6a3dd7c1c /src/InotifyQueue.cxx
parent67b46a151da4ca6f81fa63d30e2c629da352ec45 (diff)
downloadmpd-a654f146d1b39a363cb10853a7670ef099570e54.tar.gz
mpd-a654f146d1b39a363cb10853a7670ef099570e54.tar.xz
mpd-a654f146d1b39a363cb10853a7670ef099570e54.zip
update: convert to C++
Diffstat (limited to '')
-rw-r--r--src/InotifyQueue.cxx (renamed from src/inotify_queue.c)10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/inotify_queue.c b/src/InotifyQueue.cxx
index d5e2228c3..572e53fc3 100644
--- a/src/inotify_queue.c
+++ b/src/InotifyQueue.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,8 +18,8 @@
*/
#include "config.h"
-#include "inotify_queue.h"
-#include "update.h"
+#include "InotifyQueue.hxx"
+#include "UpdateGlue.hxx"
#include <glib.h>
@@ -67,7 +67,7 @@ mpd_inotify_run_update(G_GNUC_UNUSED gpointer data)
unsigned id;
while (inotify_queue != NULL) {
- char *uri_utf8 = inotify_queue->data;
+ char *uri_utf8 = (char *)inotify_queue->data;
id = update_enqueue(uri_utf8, false);
if (id == 0)
@@ -108,7 +108,7 @@ mpd_inotify_enqueue(char *uri_utf8)
inotify_queue = NULL;
while (old_queue != NULL) {
- char *current_uri = old_queue->data;
+ char *current_uri = (char *)old_queue->data;
if (path_in(uri_utf8, current_uri)) {
/* already enqueued */