aboutsummaryrefslogtreecommitdiffstats
path: root/test/dump_text_file.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-24 14:44:08 +0100
committerMax Kellermann <max@duempel.org>2013-12-24 14:44:08 +0100
commit1ad52f131c7adf3396ea03d8da0da807da222bba (patch)
tree7556fa5d25352a5166342cbd582e62f473644123 /test/dump_text_file.cxx
parent8064bbbc3f3d3bac50a9cd972106479fd32917cc (diff)
downloadmpd-1ad52f131c7adf3396ea03d8da0da807da222bba.tar.gz
mpd-1ad52f131c7adf3396ea03d8da0da807da222bba.tar.xz
mpd-1ad52f131c7adf3396ea03d8da0da807da222bba.zip
test/*: use fprintf(stderr,...) and Log() instead of g_printerr()
Avoid GLib.
Diffstat (limited to 'test/dump_text_file.cxx')
-rw-r--r--test/dump_text_file.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/dump_text_file.cxx b/test/dump_text_file.cxx
index dd0cba0f2..3da965f03 100644
--- a/test/dump_text_file.cxx
+++ b/test/dump_text_file.cxx
@@ -89,8 +89,8 @@ int main(int argc, char **argv)
int ret;
if (argc != 2) {
- g_printerr("Usage: run_input URI\n");
- return 1;
+ fprintf(stderr, "Usage: run_input URI\n");
+ return EXIT_FAILURE;
}
/* initialize GLib */
@@ -129,8 +129,8 @@ int main(int argc, char **argv)
if (error.IsDefined())
LogError(error);
else
- g_printerr("input_stream::Open() failed\n");
- ret = 2;
+ fprintf(stderr, "input_stream::Open() failed\n");
+ ret = EXIT_FAILURE;
}
/* deinitialize everything */