diff options
author | Max Kellermann <max@duempel.org> | 2013-09-05 09:21:53 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-09-05 09:21:53 +0200 |
commit | fccba1af2aae9a90f117b3ae2232f5b60a7e9f63 (patch) | |
tree | efe637caeb4fa6ef57b2532f16e25987098c72dc /src/system/Resolver.cxx | |
parent | 26d92c80ed1c1cca8b3cb1c9793c09a330c25623 (diff) | |
download | mpd-fccba1af2aae9a90f117b3ae2232f5b60a7e9f63.tar.gz mpd-fccba1af2aae9a90f117b3ae2232f5b60a7e9f63.tar.xz mpd-fccba1af2aae9a90f117b3ae2232f5b60a7e9f63.zip |
use standard snprintf() instead of GLib g_snprintf()
Diffstat (limited to 'src/system/Resolver.cxx')
-rw-r--r-- | src/system/Resolver.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/system/Resolver.cxx b/src/system/Resolver.cxx index b7fa80c38..51a5b1ed7 100644 --- a/src/system/Resolver.cxx +++ b/src/system/Resolver.cxx @@ -33,6 +33,7 @@ #endif /* G_OS_WIN32 */ #include <string.h> +#include <stdio.h> const Domain resolver_domain("resolver"); @@ -118,7 +119,7 @@ resolve_host_port(const char *host_port, unsigned default_port, char buffer[32]; if (port == NULL && default_port != 0) { - g_snprintf(buffer, sizeof(buffer), "%u", default_port); + snprintf(buffer, sizeof(buffer), "%u", default_port); port = buffer; } |