aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-29 17:23:58 +0100
committerMax Kellermann <max@duempel.org>2013-01-29 17:23:58 +0100
commiteb8922f3468fe664211911c49077a4e3442b7703 (patch)
treede04b123e392464023d50d42cd9e9464ae58ec0a /test
parent84eb95466b49453b45cdfef5bed4364cf0d3a299 (diff)
test/{read_conf,run_filter}: convert to C++
Diffstat (limited to 'test')
-rw-r--r--test/read_conf.cxx (renamed from test/read_conf.c)2
-rw-r--r--test/run_filter.cxx (renamed from test/run_filter.c)6
2 files changed, 6 insertions, 2 deletions
diff --git a/test/read_conf.c b/test/read_conf.cxx
index 4f6005c6..859c8949 100644
--- a/test/read_conf.c
+++ b/test/read_conf.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
diff --git a/test/run_filter.c b/test/run_filter.cxx
index 7a4bd9d8..990a57df 100644
--- a/test/run_filter.c
+++ b/test/run_filter.cxx
@@ -19,7 +19,11 @@
#include "config.h"
#include "conf.h"
+
+extern "C" {
#include "audio_parser.h"
+}
+
#include "audio_format.h"
#include "filter_plugin.h"
#include "pcm_volume.h"
@@ -75,7 +79,7 @@ load_filter(const char *name)
param = find_named_config_block("filter", name);
if (param == NULL) {
g_printerr("No such configured filter: %s\n", name);
- return false;
+ return nullptr;
}
filter = filter_configured_new(param, &error);