aboutsummaryrefslogtreecommitdiff
path: root/src/mfdbtool.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/mfdbtool.c')
-rw-r--r--src/mfdbtool.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/mfdbtool.c b/src/mfdbtool.c
index dd723c38..4af386ad 100644
--- a/src/mfdbtool.c
+++ b/src/mfdbtool.c
@@ -358,20 +358,21 @@ struct mu_cfg_param mfdbtool_cfg_param[] = {
};
static void
-set_state_directory(void *value)
+set_state_directory(union mf_option_value *val)
{
- state_dir = value;
+ state_dir = val->ov_string;
}
static void
-set_debug(void *value)
+set_debug(union mf_option_value *val)
{
- mu_debug_parse_spec(value);
+ mu_debug_parse_spec(val->ov_string);
+ free(val->ov_string);
}
static struct mf_option_cache option_cache[] = {
- { "state-directory", NULL, mf_option_string, set_state_directory },
- { "debug", NULL, mf_option_string, set_debug },
+ { "state-directory", mf_option_string, set_state_directory },
+ { "debug", mf_option_string, set_debug },
{ NULL }
};

Return to:

Send suggestions and report system problems to the System administrator.