Changes in conf.c [34b17d9:f4a5940]
Legend:
- Unmodified
- Added
- Removed
-
conf.c
r34b17d9 rf4a5940 61 61 conf->configdir = g_strdup( CONFIG ); 62 62 conf->plugindir = g_strdup( PLUGINDIR ); 63 conf->pidfile = g_strdup( "/var/run/bitlbee.pid" );64 63 conf->motdfile = g_strdup( ETCDIR "/motd.txt" ); 65 64 conf->ping_interval = 180; … … 78 77 } 79 78 80 while( argc > 0 && ( opt = getopt( argc, argv, "i:p: P:nvIDFc:d:h" ) ) >= 0 )79 while( argc > 0 && ( opt = getopt( argc, argv, "i:p:nvIDFc:d:h" ) ) >= 0 ) 81 80 /* ^^^^ Just to make sure we skip this step from the REHASH handler. */ 82 81 { … … 93 92 } 94 93 conf->port = i; 95 }96 else if( opt == 'p' )97 {98 g_free( conf->pidfile );99 conf->pidfile = g_strdup( optarg );100 94 } 101 95 else if( opt == 'n' ) … … 181 175 else 182 176 conf->runmode = RUNMODE_INETD; 183 }184 else if( g_strcasecmp( ini->key, "pidfile" ) == 0 )185 {186 g_free( conf->pidfile );187 conf->pidfile = g_strdup( ini->value );188 177 } 189 178 else if( g_strcasecmp( ini->key, "daemoninterface" ) == 0 )
Note: See TracChangeset
for help on using the changeset viewer.