[gssdp] gssdp-client: Use g_warning() instead of g_error()



commit 468e985d4000e75f6b444c547a5be6641a6fb5e0
Author: Philip Withnall <philip withnall collabora co uk>
Date:   Thu Apr 24 12:56:37 2014 +0100

    gssdp-client: Use g_warning() instead of g_error()
    
    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 files 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;
         }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]