aboutsummaryrefslogtreecommitdiffstats
path: root/ipc.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-05-25 01:04:18 +0200
committerJelmer Vernooij <jelmer@samba.org>2006-05-25 01:04:18 +0200
commit601e81362bbf4e4d1e686334b35d3bdcd87314d2 (patch)
tree53ed2250bfc35b9e8da568b6f624a530d323ef32 /ipc.c
parent46ad029950221205d1eb6201ec2f01c7231876c2 (diff)
parentfc630f9fb47690c30feaf4738727a213d633afc9 (diff)
[merge] Wilmer
Diffstat (limited to 'ipc.c')
-rw-r--r--ipc.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/ipc.c b/ipc.c
index 1b813e7f..18d3284e 100644
--- a/ipc.c
+++ b/ipc.c
@@ -83,8 +83,6 @@ void ipc_master_cmd_rehash( irc_t *data, char **cmd )
void ipc_master_cmd_restart( irc_t *data, char **cmd )
{
- struct bitlbee_child *child = (void*) data;
-
if( global.conf->runmode != RUNMODE_FORKDAEMON )
{
/* Tell child that this is unsupported. */
@@ -508,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;
}
@@ -572,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;
}