diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/DumpDatabase.cxx | 2 | ||||
-rw-r--r-- | test/TestQueuePriority.cxx (renamed from test/test_queue_priority.c) | 11 |
2 files changed, 5 insertions, 8 deletions
diff --git a/test/DumpDatabase.cxx b/test/DumpDatabase.cxx index fc42ba147..3a4e980b1 100644 --- a/test/DumpDatabase.cxx +++ b/test/DumpDatabase.cxx @@ -21,7 +21,7 @@ #include "DatabaseRegistry.hxx" #include "DatabasePlugin.hxx" #include "DatabaseSelection.hxx" -#include "directory.h" +#include "Directory.hxx" #include "song.h" #include "PlaylistVector.hxx" 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 |