# HG changeset patch # User markus schnalke # Date 1319099027 -7200 # Node ID 19d57eb1b6a134c7344eb5483607f6efccdffe84 # Parent b35c17fcf69d470b882cc1ca8dc8b1f67d8de4f0 Minor refactoring change (else-if). diff -r b35c17fcf69d -r 19d57eb1b6a1 src/connect.c --- a/src/connect.c Thu Oct 20 10:22:40 2011 +0200 +++ b/src/connect.c Thu Oct 20 10:23:47 2011 +0200 @@ -139,10 +139,8 @@ } g_list_free(addr_list); - } else { - if (!g_list_next(res_node)) { - logwrite(LOG_ALERT, "could not resolve %s: %s\n", host, hstrerror(h_errno)); - } + } else if (!g_list_next(res_node)) { + logwrite(LOG_ALERT, "could not resolve %s: %s\n", host, hstrerror(h_errno)); } } return NULL;