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 diff
     1.1 --- a/src/connect.c	Thu Oct 20 10:22:40 2011 +0200
     1.2 +++ b/src/connect.c	Thu Oct 20 10:23:47 2011 +0200
     1.3 @@ -139,10 +139,8 @@
     1.4  			}
     1.5  
     1.6  			g_list_free(addr_list);
     1.7 -		} else {
     1.8 -			if (!g_list_next(res_node)) {
     1.9 -				logwrite(LOG_ALERT, "could not resolve %s: %s\n", host, hstrerror(h_errno));
    1.10 -			}
    1.11 +		} else if (!g_list_next(res_node)) {
    1.12 +			logwrite(LOG_ALERT, "could not resolve %s: %s\n", host, hstrerror(h_errno));
    1.13  		}
    1.14  	}
    1.15  	return NULL;