Show
Ignore:
Timestamp:
07/31/04 21:29:31 (9 years ago)
Author:
alexcv
Message:

Added wdctl facility

Files:
1 modified

Legend:

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

    r136 r150  
    6868        oClientTimeout, 
    6969        oCheckInterval, 
     70        oWdctlSocket, 
    7071        oSyslogFacility 
    7172} OpCodes; 
     
    9495        { "checkinterval",      oCheckInterval }, 
    9596        { "syslogfacility",     oSyslogFacility }, 
     97        { "wdctlsocket",        oWdctlSocket }, 
    9698        { NULL,                 oBadOption }, 
    9799}; 
     
    132134        config.daemon = -1; 
    133135        config.log_syslog = DEFAULT_LOG_SYSLOG; 
     136        config.wdctl_sock = strdup(DEFAULT_WDCTL_SOCK); 
    134137} 
    135138 
     
    255258                                        sscanf(p1, "%d", &config.checkinterval); 
    256259                                        break; 
     260                                case oWdctlSocket: 
     261                                        free(config.wdctl_sock); 
     262                                        config.wdctl_sock = strdup(p1); 
     263                                        break; 
    257264                                case oClientTimeout: 
    258265                                        sscanf(p1, "%d", &config.clienttimeout);