aboutsummaryrefslogtreecommitdiffstats
path: root/src/ClientNew.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-08-10 18:02:44 +0200
committerMax Kellermann <max@duempel.org>2013-09-04 18:14:22 +0200
commit29030b54c98b0aee65fbc10ebf7ba36bed98c02c (patch)
tree79766830b55ebca38ddbce84d8d548227eedb69e /src/ClientNew.cxx
parentc9fcc7f14860777458153eb2d13c773ccfa1daa2 (diff)
downloadmpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.tar.gz
mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.tar.xz
mpd-29030b54c98b0aee65fbc10ebf7ba36bed98c02c.zip
util/Error: new error passing library
Replaces GLib's GError.
Diffstat (limited to 'src/ClientNew.cxx')
-rw-r--r--src/ClientNew.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/ClientNew.cxx b/src/ClientNew.cxx
index dd5aba318..bc12bbf6a 100644
--- a/src/ClientNew.cxx
+++ b/src/ClientNew.cxx
@@ -25,6 +25,7 @@
#include "system/fd_util.h"
#include "system/Resolver.hxx"
#include "Permission.hxx"
+#include "util/Error.hxx"
#include <assert.h>
#include <sys/types.h>
@@ -70,7 +71,8 @@ client_new(EventLoop &loop, Partition &partition,
#ifdef HAVE_LIBWRAP
if (sa->sa_family != AF_UNIX) {
- char *hostaddr = sockaddr_to_string(sa, sa_length, NULL);
+ char *hostaddr = sockaddr_to_string(sa, sa_length,
+ IgnoreError());
const char *progname = g_get_prgname();
struct request_info req;
@@ -107,7 +109,7 @@ client_new(EventLoop &loop, Partition &partition,
client_list.Add(*client);
- remote = sockaddr_to_string(sa, sa_length, NULL);
+ remote = sockaddr_to_string(sa, sa_length, IgnoreError());
g_log(G_LOG_DOMAIN, LOG_LEVEL_SECURE,
"[%u] opened from %s", client->num, remote);
g_free(remote);