diff options
Diffstat (limited to 'source4/torture/ui.c')
-rw-r--r-- | source4/torture/ui.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/ui.c b/source4/torture/ui.c index 6abd394f76..67442f1df1 100644 --- a/source4/torture/ui.c +++ b/source4/torture/ui.c @@ -368,26 +368,26 @@ bool torture_run_test(struct torture_context *context, int torture_setting_int(struct torture_context *test, const char *name, int default_value) { - return lp_parm_int(global_loadparm, NULL, "torture", name, default_value); + return lp_parm_int(test->lp_ctx, NULL, "torture", name, default_value); } double torture_setting_double(struct torture_context *test, const char *name, double default_value) { - return lp_parm_double(global_loadparm, NULL, "torture", name, default_value); + return lp_parm_double(test->lp_ctx, NULL, "torture", name, default_value); } bool torture_setting_bool(struct torture_context *test, const char *name, bool default_value) { - return lp_parm_bool(global_loadparm, NULL, "torture", name, default_value); + return lp_parm_bool(test->lp_ctx, NULL, "torture", name, default_value); } const char *torture_setting_string(struct torture_context *test, const char *name, const char *default_value) { - const char *ret = lp_parm_string(global_loadparm, NULL, "torture", name); + const char *ret = lp_parm_string(test->lp_ctx, NULL, "torture", name); if (ret == NULL) return default_value; |