diff options
Diffstat (limited to 'bitlbee.c')
| -rw-r--r-- | bitlbee.c | 8 | 
1 files changed, 5 insertions, 3 deletions
| @@ -51,7 +51,8 @@ int bitlbee_daemon_init()  	i = getaddrinfo( global.conf->iface, global.conf->port, &hints,   						&addrinfo_bind ); -	if ( i ) { +	if( i ) +	{  		log_message( LOGLVL_ERROR, "Couldn't parse address `%s': %s",   					 global.conf->iface, gai_strerror(i) );  		return -1; @@ -59,10 +60,11 @@ int bitlbee_daemon_init()  	global.listen_socket = -1; -	for ( res = addrinfo_bind; res; res = res->ai_next ) { +	for( res = addrinfo_bind; res; res = res->ai_next ) +	{  		global.listen_socket = socket( res->ai_family, res->ai_socktype,   									   res->ai_protocol ); -		if ( global.listen_socket < 0 ) +		if( global.listen_socket < 0 )  			continue;  		/* TIME_WAIT (?) sucks.. */ | 
