- Timestamp:
- 2008-06-29T12:47:39Z (16 years ago)
- Branches:
- master
- Children:
- f5d1b31
- Parents:
- 1145964
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ipc.c
r1145964 rcd63d58 33 33 34 34 GSList *child_list = NULL; 35 static char *statefile = NULL;36 35 37 36 static void ipc_master_cmd_client( irc_t *data, char **cmd ) … … 501 500 } 502 501 503 void ipc_master_set_statefile( char *fn )504 {505 statefile = g_strdup( fn );506 }507 508 502 509 503 static gboolean new_ipc_client( gpointer data, gint serversock, b_input_condition cond ) … … 566 560 #endif 567 561 568 int ipc_master_load_state( )562 int ipc_master_load_state( char *statefile ) 569 563 { 570 564 struct bitlbee_child *child; … … 574 568 if( statefile == NULL ) 575 569 return 0; 570 576 571 fp = fopen( statefile, "r" ); 577 572 unlink( statefile ); /* Why do it later? :-) */
Note: See TracChangeset
for help on using the changeset viewer.