aboutsummaryrefslogtreecommitdiffstats
path: root/test/TestQueuePriority.cxx
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--test/TestQueuePriority.cxx (renamed from test/test_queue_priority.c)11
1 files changed, 4 insertions, 7 deletions
diff --git a/test/test_queue_priority.c b/test/TestQueuePriority.cxx
index b4a7366e9..a046df524 100644
--- a/test/test_queue_priority.c
+++ b/test/TestQueuePriority.cxx
@@ -1,19 +1,16 @@
#include "config.h"
+extern "C" {
#include "queue.h"
+}
#include "song.h"
-#include "directory.h"
+#include "Directory.hxx"
struct directory detached_root;
struct song *
song_dup_detached(const struct song *src)
{
- union {
- const struct song *in;
- struct song *out;
- } u = { .in = src };
-
- return u.out;
+ return const_cast<song *>(src);
}
void