Changeset 52744f8 for ipc.c


Ignore:
Timestamp:
2008-01-17T22:06:55Z (12 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
ac4adf9
Parents:
13857c6
Message:

Fixing some Solaris compiler warnings (u_int->uint, adding some typecasts
for pid_t variables).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ipc.c

    r13857c6 r52744f8  
    5252        if( g_strcasecmp( cmd[0], "CLIENT" ) == 0 )
    5353                ipc_to_children_str( "OPERMSG :Client connecting (PID=%d): %s@%s (%s)\r\n",
    54                                      child ? child->pid : -1, cmd[2], cmd[1], cmd[3] );
     54                                     (int) ( child ? child->pid : -1 ), cmd[2], cmd[1], cmd[3] );
    5555}
    5656
     
    446446       
    447447        for( l = child_list; l; l = l->next )
    448                 fprintf( fp, "%d %d\n", ((struct bitlbee_child*)l->data)->pid,
     448                fprintf( fp, "%d %d\n", (int) ((struct bitlbee_child*)l->data)->pid,
    449449                                        ((struct bitlbee_child*)l->data)->ipc_fd );
    450450       
     
    551551                child = g_new0( struct bitlbee_child, 1 );
    552552               
    553                 if( fscanf( fp, "%d %d", &child->pid, &child->ipc_fd ) != 2 )
     553                if( fscanf( fp, "%d %d", (int *) &child->pid, &child->ipc_fd ) != 2 )
    554554                {
    555555                        log_message( LOGLVL_WARNING, "Unexpected end of file: Only processed %d clients.", i );
Note: See TracChangeset for help on using the changeset viewer.