Show
Ignore:
Timestamp:
05/04/04 21:41:42 (9 years ago)
Author:
aprilp
Message:

Cleanups

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/wifidog/src/conf.c

    r95 r110  
    3737#define DEFAULT_CLIENTTIMEOUT 5 
    3838#define DEFAULT_CHECKINTERVAL 5 
    39 #define DEFAULT_FWSCRIPTS_PATH "." 
    40 #define DEFAULT_FWTYPE "." 
    4139#define DEFAULT_LOG_SYSLOG 0 
    4240#define DEFAULT_SYSLOG_FACILITY LOG_DAEMON 
     
    6159        oClientTimeout, 
    6260        oCheckInterval, 
    63         oFWScriptsPath, 
    64         oFWType, 
    6561    oSyslogFacility, 
    6662} OpCodes; 
     
    8581        { "clienttimeout",      oClientTimeout }, 
    8682        { "checkinterval",      oCheckInterval }, 
    87         { "fwscriptspath",      oFWScriptsPath }, 
    88         { "fwtype",             oFWType }, 
    8983        { "syslogfacility",     oSyslogFacility }, 
    9084        { NULL,                 oBadOption }, 
     
    110104        config.clienttimeout = DEFAULT_CLIENTTIMEOUT; 
    111105        config.checkinterval = DEFAULT_CHECKINTERVAL; 
    112         config.fwscripts_path = DEFAULT_FWSCRIPTS_PATH; 
    113         config.fwtype = DEFAULT_FWTYPE; 
    114106        config.syslog_facility = DEFAULT_SYSLOG_FACILITY; 
    115107    config.daemon = -1; 
     
    237229                                        sscanf(p1, "%d", &config.clienttimeout); 
    238230                                        break; 
    239                 case oFWScriptsPath: 
    240                                         config.fwscripts_path = get_string(p1); 
    241                                         break; 
    242                 case oFWType: 
    243                                         config.fwtype = get_string(p1); 
    244                                         break; 
    245231                case oSyslogFacility: 
    246232                                        sscanf(p1, "%d", &config.syslog_facility);