@@ -50,12 +50,10 @@ return(0); } static int lc_process_var_cidr(void *data, const char *value) { - - return(0); } static int lc_process_var_ip(void *data, const char *value) { uint32_t *dataval = NULL, retval = 0; @@ -280,10 +278,13 @@ return(lc_process_var_sizesizet(data, value)); break; case LC_VAR_IP: return(lc_process_var_ip(data, value)); break; + case LC_VAR_CIDR: + return(lc_process_var_cidr(data, value)); + break; case LC_VAR_TIME: case LC_VAR_DATE: case LC_VAR_FILENAME: case LC_VAR_DIRECTORY: #ifdef DEBUG @@ -791,11 +792,13 @@ return(chkretval); } static int lc_process_files(const char *appname, lc_conf_type_t type, const char *extraconfig) { +#ifdef HAVE_GETPWUID struct passwd *pwinfo = NULL; +#endif char configfiles[3][13][512] = {{{0}}}; char *configfile = NULL; char *homedir = NULL; int configsetidx = 0, configidx = 0; int chkretval = 0, retval = 0;