{
WERROR werr;
uint32_t idx;
- struct txt_cache *cache = (struct txt_cache *)private_data;
+ struct txt_private_data *tpd = (struct txt_private_data *)private_data;
+ struct txt_cache *cache = tpd->cache;
if (smbconf_find_in_array(section, cache->share_names,
cache->num_shares, &idx))
char **param_names, **param_values;
uint32_t num_params;
uint32_t idx;
- struct txt_cache *cache = (struct txt_cache *)private_data;
+ struct txt_private_data *tpd = (struct txt_private_data *)private_data;
+ struct txt_cache *cache = tpd->cache;
if (cache->num_shares == 0) {
/* not in any share ... */
}
if (!pm_process(ctx->path, smbconf_txt_do_section,
- smbconf_txt_do_parameter, pd(ctx)->cache))
+ smbconf_txt_do_parameter, pd(ctx)))
{
return WERR_CAN_NOT_COMPLETE;
}