From 1ad52f131c7adf3396ea03d8da0da807da222bba Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 24 Dec 2013 14:44:08 +0100 Subject: test/*: use fprintf(stderr,...) and Log() instead of g_printerr() Avoid GLib. --- test/dump_text_file.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'test/dump_text_file.cxx') 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 */ -- cgit v1.2.3