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/output/HttpdClient.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/output/HttpdClient.cxx') diff --git a/src/output/HttpdClient.cxx b/src/output/HttpdClient.cxx index c097e48f1..9ed7805dc 100644 --- a/src/output/HttpdClient.cxx +++ b/src/output/HttpdClient.cxx @@ -431,10 +431,9 @@ HttpdClient::OnSocketInput(const void *data, size_t length) } void -HttpdClient::OnSocketError(GError *error) +HttpdClient::OnSocketError(Error &&error) { - g_warning("error on HTTP client: %s", error->message); - g_error_free(error); + g_warning("error on HTTP client: %s", error.GetMessage()); } void -- cgit v1.2.3