From 468e985d4000e75f6b444c547a5be6641a6fb5e0 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Thu, 24 Apr 2014 12:56:37 +0100 Subject: [PATCH] gssdp-client: Use g_warning() instead of g_error() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit get_host_ip() can gracefully fail, and all the code which calls it can handle graceful failure. There’s no need for a non-graceful failure using g_error(), which will just cause unnecessary abort()s in client applications. https://bugzilla.gnome.org/show_bug.cgi?id=728871 --- libgssdp/gssdp-client.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libgssdp/gssdp-client.c b/libgssdp/gssdp-client.c index f24e57a..2410ccc 100644 --- a/libgssdp/gssdp-client.c +++ b/libgssdp/gssdp-client.c @@ -1513,8 +1513,8 @@ success: up_ifaces = NULL; if (getifaddrs (&ifa_list) != 0) { - g_error ("Failed to retrieve list of network interfaces:\n%s\n", - strerror (errno)); + g_warning ("Failed to retrieve list of network interfaces: %s", + strerror (errno)); return FALSE; } -- 2.7.4