diff options
| author | Jelmer Vernooij <jelmer@samba.org> | 2006-12-05 21:40:17 +0100 | 
|---|---|---|
| committer | Jelmer Vernooij <jelmer@samba.org> | 2006-12-05 21:40:17 +0100 | 
| commit | d8d63a27dcfd38245927af95521b6f8918b23795 (patch) | |
| tree | 75e4675b12970db6645c087ab75ec35c1b1ba9fd /unix.c | |
| parent | f4aa393b221dcc709f189ed04945ee67e956872a (diff) | |
| parent | 55078f59c8e9f52f1d10bed55511e5e58ec3e53b (diff) | |
[merge] wilmer
Diffstat (limited to 'unix.c')
| -rw-r--r-- | unix.c | 14 | 
1 files changed, 6 insertions, 8 deletions
| @@ -47,20 +47,18 @@ int main( int argc, char *argv[], char **envp )  	memset( &global, 0, sizeof( global_t ) );  	b_main_init(); -	  	log_init(); -  	nogaim_init(); - -	CONF_FILE = g_strdup( CONF_FILE_DEF ); +	srand( time( NULL ) ^ getpid() ); +	 +	CONF_FILE = g_strdup( CONF_FILE_DEF );  	global.helpfile = g_strdup( HELP_FILE ); - +	  	global.conf = conf_load( argc, argv );  	if( global.conf == NULL )  		return( 1 ); - - +	  	if( global.conf->runmode == RUNMODE_INETD )  	{  		i = bitlbee_inetd_init(); @@ -88,7 +86,7 @@ int main( int argc, char *argv[], char **envp )  	}  	if( i != 0 )  		return( i ); - +	  	global.storage = storage_init( global.conf->primary_storage, global.conf->migrate_storage );  	if ( global.storage == NULL) {  		log_message( LOGLVL_ERROR, "Unable to load storage backend '%s'", global.conf->primary_storage ); | 
