Mercurial > masqmail
changeset 369:19d57eb1b6a1
Minor refactoring change (else-if).
author | markus schnalke <meillo@marmaro.de> |
---|---|
date | Thu, 20 Oct 2011 10:23:47 +0200 |
parents | b35c17fcf69d |
children | d86d7b4b8995 |
files | src/connect.c |
diffstat | 1 files changed, 2 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- 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;