aboutsummaryrefslogtreecommitdiffstats
path: root/bitlbee.c
diff options
context:
space:
mode:
Diffstat (limited to 'bitlbee.c')
-rw-r--r--bitlbee.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/bitlbee.c b/bitlbee.c
index 625ea214..7a9a89d9 100644
--- a/bitlbee.c
+++ b/bitlbee.c
@@ -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.. */