Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • conf.c

    rf4a5940 r2a6ca4f  
    6464        conf->ping_interval = 180;
    6565        conf->ping_timeout = 300;
    66         proxytype = 0;
    6766       
    6867        i = conf_loadini( conf, CONF_FILE );
     
    7776        }
    7877       
    79         while( argc > 0 && ( opt = getopt( argc, argv, "i:p:nvIDFc:d:h" ) ) >= 0 )
    80         /*     ^^^^ Just to make sure we skip this step from the REHASH handler. */
     78        while( ( opt = getopt( argc, argv, "i:p:nvIDFc:d:h" ) ) >= 0 )
    8179        {
    8280                if( opt == 'i' )
     
    9492                }
    9593                else if( opt == 'n' )
    96                         conf->nofork = 1;
     94                        conf->nofork=1;
    9795                else if( opt == 'v' )
    98                         conf->verbose = 1;
     96                        conf->verbose=1;
    9997                else if( opt == 'I' )
    100                         conf->runmode = RUNMODE_INETD;
     98                        conf->runmode=RUNMODE_INETD;
    10199                else if( opt == 'D' )
    102                         conf->runmode = RUNMODE_DAEMON;
     100                        conf->runmode=RUNMODE_DAEMON;
    103101                else if( opt == 'F' )
    104                         conf->runmode = RUNMODE_FORKDAEMON;
     102                        conf->runmode=RUNMODE_FORKDAEMON;
    105103                else if( opt == 'c' )
    106104                {
     
    110108                                CONF_FILE = g_strdup( optarg );
    111109                                g_free( conf );
    112                                 /* Re-evaluate arguments. Don't use this option twice,
    113                                    you'll end up in an infinite loop! Hope this trick
    114                                    works with all libcs BTW.. */
    115                                 optind = 1;
    116110                                return( conf_load( argc, argv ) );
    117111                        }
Note: See TracChangeset for help on using the changeset viewer.