Changes in unix.c [aaf92a9:eeb85a8]
Legend:
- Unmodified
- Added
- Removed
-
unix.c
raaf92a9 reeb85a8 47 47 48 48 log_init(); 49 CONF_FILE= g_strdup( CONF_FILE_DEF );49 global.conf_file = g_strdup( CONF_FILE_DEF ); 50 50 global.conf = conf_load( argc, argv ); 51 51 if( global.conf == NULL ) … … 124 124 if( !getuid() || !geteuid() ) 125 125 log_message( LOGLVL_WARNING, "BitlBee is running with root privileges. Why?" ); 126 if( help_init( & (global.help), global.helpfile ) == NULL )126 if( help_init( &global.help, global.helpfile ) == NULL ) 127 127 log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE ); 128 128 129 129 b_main_run(); 130 131 /* Mainly good for restarting, to make sure we close the help.txt fd. */ 132 help_free( &global.help ); 130 133 131 134 if( global.restart ) … … 197 200 { 198 201 if( WIFSIGNALED( st ) ) 199 log_message( LOGLVL_INFO, "Client %d terminated normally. (status = %d)", pid, WEXITSTATUS( st ) );202 log_message( LOGLVL_INFO, "Client %d terminated normally. (status = %d)", (int) pid, WEXITSTATUS( st ) ); 200 203 else if( WIFEXITED( st ) ) 201 log_message( LOGLVL_INFO, "Client %d killed by signal %d.", pid, WTERMSIG( st ) );204 log_message( LOGLVL_INFO, "Client %d killed by signal %d.", (int) pid, WTERMSIG( st ) ); 202 205 } 203 206 }
Note: See TracChangeset
for help on using the changeset viewer.