From feb8d5b82f3e7c67806d5efbef1e0b86170ec6dd Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 29 Jan 2013 17:23:35 +0100 Subject: ConfigFile, CommandLine: use the Path class --- test/dump_playlist.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'test/dump_playlist.cxx') diff --git a/test/dump_playlist.cxx b/test/dump_playlist.cxx index 175a407ec..ec09bcb29 100644 --- a/test/dump_playlist.cxx +++ b/test/dump_playlist.cxx @@ -28,6 +28,7 @@ #include "IOThread.hxx" #include "PlaylistRegistry.hxx" #include "PlaylistPlugin.hxx" +#include "fs/Path.hxx" extern "C" { #include "decoder_list.h" @@ -141,7 +142,6 @@ int main(int argc, char **argv) { const char *uri; struct input_stream *is = NULL; - bool success; GError *error = NULL; struct playlist_provider *playlist; struct song *song; @@ -151,6 +151,7 @@ int main(int argc, char **argv) return 1; } + const Path config_path = Path::FromFS(argv[1]); uri = argv[2]; /* initialize GLib */ @@ -161,8 +162,7 @@ int main(int argc, char **argv) /* initialize MPD */ config_global_init(); - success = config_read_file(argv[1], &error); - if (!success) { + if (!ReadConfigFile(config_path, &error)) { g_printerr("%s\n", error->message); g_error_free(error); return 1; -- cgit v1.2.3