aboutsummaryrefslogtreecommitdiffstats
path: root/ipc.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-06-03 22:20:43 +0200
committerJelmer Vernooij <jelmer@samba.org>2006-06-03 22:20:43 +0200
commit9779c186bd6d396a6fde61cc215f2438d453ee97 (patch)
treef213d656883f0c9f602b9d78bfe3ee9143744bdf /ipc.c
parenta15c097fa32028394264cf66ef4fd31f56315eb3 (diff)
parentfb62f81f947c74e274b05e32d2e88e3a4d7e2613 (diff)
[merge] Wilmer
Diffstat (limited to 'ipc.c')
-rw-r--r--ipc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/ipc.c b/ipc.c
index 48bd574a..18d3284e 100644
--- a/ipc.c
+++ b/ipc.c
@@ -506,7 +506,7 @@ int ipc_master_listen_socket()
return 0;
}
- if (bind(serversock, &un_addr, sizeof(un_addr)) == -1) {
+ if (bind(serversock, (struct sockaddr *)&un_addr, sizeof(un_addr)) == -1) {
log_message( LOGLVL_WARNING, "Unable to bind UNIX socket to %s: %s", IPCSOCKET, strerror(errno) );
return 0;
}
@@ -570,5 +570,6 @@ int ipc_master_load_state()
ipc_to_children_str( "HELLO\r\n" );
ipc_to_children_str( "OPERMSG :New BitlBee master process started (version " BITLBEE_VERSION ")\r\n" );
+ fclose( fp );
return 1;
}