aboutsummaryrefslogtreecommitdiffstats
path: root/test/run_resolver.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/run_resolver.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/run_resolver.cxx')
-rw-r--r--test/run_resolver.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/run_resolver.cxx b/test/run_resolver.cxx
index 65c55b4df..aba7238ec 100644
--- a/test/run_resolver.cxx
+++ b/test/run_resolver.cxx
@@ -22,8 +22,6 @@
#include "util/Error.hxx"
#include "Log.hxx"
-#include <glib.h>
-
#ifdef WIN32
#include <ws2tcpip.h>
#include <winsock.h>
@@ -37,7 +35,7 @@
int main(int argc, char **argv)
{
if (argc != 2) {
- g_printerr("Usage: run_resolver HOST\n");
+ fprintf(stderr, "Usage: run_resolver HOST\n");
return EXIT_FAILURE;
}
@@ -52,7 +50,7 @@ int main(int argc, char **argv)
for (const struct addrinfo *i = ai; i != NULL; i = i->ai_next) {
const auto s = sockaddr_to_string(i->ai_addr, i->ai_addrlen);
- g_print("%s\n", s.c_str());
+ printf("%s\n", s.c_str());
}
freeaddrinfo(ai);