[Goodies-commits] r5233 - xfce4-mailwatch-plugin/trunk/libmailwatch-core
Brian Tarricone
kelnos at xfce.org
Sat Aug 16 10:47:47 CEST 2008
Author: kelnos
Date: 2008-08-16 08:47:47 +0000 (Sat, 16 Aug 2008)
New Revision: 5233
Modified:
xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-net-conn.c
Log:
report getaddrinfo() error correctly
Modified: xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-net-conn.c
===================================================================
--- xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-net-conn.c 2008-08-16 08:47:36 UTC (rev 5232)
+++ xfce4-mailwatch-plugin/trunk/libmailwatch-core/mailwatch-net-conn.c 2008-08-16 08:47:47 UTC (rev 5233)
@@ -296,7 +296,9 @@
if(error) {
g_set_error(error, XFCE_MAILWATCH_ERROR, 0,
_("Could not find host \"%s\": %s"),
- net_conn->hostname, gai_strerror(ret));
+ net_conn->hostname,
+ EAI_SYSTEM == ret ? strerror(errno)
+ : gai_strerror(ret));
}
return FALSE;
}
More information about the Goodies-commits
mailing list