Changeset 5674207
- Timestamp:
- 2009-11-28T19:51:39Z (15 years ago)
- Branches:
- master
- Children:
- a19ea7a
- Parents:
- 3e7b640
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r3e7b640 r5674207 171 171 /* Evaluator sets the iconv/oconv structures. */ 172 172 set_eval_charset( set_find( &irc->set, "charset" ), set_getstr( &irc->set, "charset" ) ); 173 174 nogaim_init(); 173 175 174 176 return( irc ); -
unix.c
r3e7b640 r5674207 47 47 48 48 log_init(); 49 49 50 global.conf_file = g_strdup( CONF_FILE_DEF ); 50 51 global.conf = conf_load( argc, argv ); … … 53 54 54 55 b_main_init(); 55 nogaim_init();56 56 57 57 srand( time( NULL ) ^ getpid() ); 58 58 59 global.helpfile = g_strdup( HELP_FILE ); 60 if( help_init( &global.help, global.helpfile ) == NULL ) 61 log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE ); 62 63 global.storage = storage_init( global.conf->primary_storage, global.conf->migrate_storage ); 64 if( global.storage == NULL ) 65 { 66 log_message( LOGLVL_ERROR, "Unable to load storage backend '%s'", global.conf->primary_storage ); 67 return( 1 ); 68 } 59 69 60 70 if( global.conf->runmode == RUNMODE_INETD ) … … 104 114 setuid( pw->pw_uid ); 105 115 } 106 }107 108 global.storage = storage_init( global.conf->primary_storage, global.conf->migrate_storage );109 if( global.storage == NULL )110 {111 log_message( LOGLVL_ERROR, "Unable to load storage backend '%s'", global.conf->primary_storage );112 return( 1 );113 116 } 114 117 … … 130 133 if( !getuid() || !geteuid() ) 131 134 log_message( LOGLVL_WARNING, "BitlBee is running with root privileges. Why?" ); 132 if( help_init( &global.help, global.helpfile ) == NULL )133 log_message( LOGLVL_WARNING, "Error opening helpfile %s.", HELP_FILE );134 135 135 136 b_main_run();
Note: See TracChangeset
for help on using the changeset viewer.