Lines Matching defs:cfg
60 static int ndmpd_config_update(ndmpd_cfg_param_t *cfg, char *value);
105 ndmpd_cfg_param_t *cfg;
109 cfg = &ndmpd_cfg_table[id];
110 if ((ndmp_get_prop(cfg->sc_name, &value)) == -1) {
112 cfg->sc_name, ndmp_strerror(ndmp_errno));
122 if ((cfg->sc_flags & NDMP_CF_DEFINED) || value) {
123 if (ndmpd_config_update(cfg, value)) {
140 ndmpd_config_update(ndmpd_cfg_param_t *cfg, char *value)
148 if (cfg->sc_value) {
149 curval = realloc(cfg->sc_value, (len + 1));
155 cfg->sc_value = curval;
156 (void) strcpy(cfg->sc_value, value);
157 cfg->sc_flags |= NDMP_CF_DEFINED;
162 } else if (cfg->sc_value) {
163 free(cfg->sc_value);
164 cfg->sc_value = 0;
165 cfg->sc_flags &= ~NDMP_CF_DEFINED;