From 29030b54c98b0aee65fbc10ebf7ba36bed98c02c Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 10 Aug 2013 18:02:44 +0200 Subject: util/Error: new error passing library Replaces GLib's GError. --- src/ClientNew.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/ClientNew.cxx') 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 #include @@ -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); -- cgit v1.2.3