diff options
author | Max Kellermann <max@duempel.org> | 2013-01-29 17:23:35 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-29 18:09:39 +0100 |
commit | feb8d5b82f3e7c67806d5efbef1e0b86170ec6dd (patch) | |
tree | 8127b30bc339eae03226f3e97ea8ac99f62587b3 /test/DumpDatabase.cxx | |
parent | eb8922f3468fe664211911c49077a4e3442b7703 (diff) |
ConfigFile, CommandLine: use the Path class
Diffstat (limited to 'test/DumpDatabase.cxx')
-rw-r--r-- | test/DumpDatabase.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/DumpDatabase.cxx b/test/DumpDatabase.cxx index ea0ebb44..501c8020 100644 --- a/test/DumpDatabase.cxx +++ b/test/DumpDatabase.cxx @@ -26,6 +26,7 @@ #include "PlaylistVector.hxx" #include "conf.h" #include "tag.h" +#include "fs/Path.hxx" #include <iostream> using std::cout; @@ -76,7 +77,7 @@ main(int argc, char **argv) return 1; } - const char *const config_path = argv[1]; + const Path config_path = Path::FromFS(argv[1]); const char *const plugin_name = argv[2]; const DatabasePlugin *plugin = GetDatabasePluginByName(plugin_name); @@ -94,7 +95,7 @@ main(int argc, char **argv) config_global_init(); - if (!config_read_file(config_path, &error)) { + if (!ReadConfigFile(config_path, &error)) { cerr << error->message << endl; g_error_free(error); return EXIT_FAILURE; |