aboutsummaryrefslogtreecommitdiffstats
path: root/ipc.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-01-17 22:06:55 +0000
committerWilmer van der Gaast <wilmer@gaast.net>2008-01-17 22:06:55 +0000
commit52744f8f65a278a59a8903d5c594e057d63c7006 (patch)
tree9cd0ff1f2b49146b3d42c70c272ff88d215436b8 /ipc.c
parent13857c648210a16448619c65e33f9918bfe27cbe (diff)
Fixing some Solaris compiler warnings (u_int->uint, adding some typecasts
for pid_t variables).
Diffstat (limited to 'ipc.c')
-rw-r--r--ipc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ipc.c b/ipc.c
index d0d2dff3..384a9c33 100644
--- a/ipc.c
+++ b/ipc.c
@@ -51,7 +51,7 @@ static void ipc_master_cmd_client( irc_t *data, char **cmd )
if( g_strcasecmp( cmd[0], "CLIENT" ) == 0 )
ipc_to_children_str( "OPERMSG :Client connecting (PID=%d): %s@%s (%s)\r\n",
- child ? child->pid : -1, cmd[2], cmd[1], cmd[3] );
+ (int) ( child ? child->pid : -1 ), cmd[2], cmd[1], cmd[3] );
}
static void ipc_master_cmd_die( irc_t *data, char **cmd )
@@ -445,7 +445,7 @@ char *ipc_master_save_state()
fprintf( fp, "%d\n", i );
for( l = child_list; l; l = l->next )
- fprintf( fp, "%d %d\n", ((struct bitlbee_child*)l->data)->pid,
+ fprintf( fp, "%d %d\n", (int) ((struct bitlbee_child*)l->data)->pid,
((struct bitlbee_child*)l->data)->ipc_fd );
if( fclose( fp ) == 0 )
@@ -550,7 +550,7 @@ int ipc_master_load_state()
{
child = g_new0( struct bitlbee_child, 1 );
- if( fscanf( fp, "%d %d", &child->pid, &child->ipc_fd ) != 2 )
+ if( fscanf( fp, "%d %d", (int *) &child->pid, &child->ipc_fd ) != 2 )
{
log_message( LOGLVL_WARNING, "Unexpected end of file: Only processed %d clients.", i );
g_free( child );