summaryrefslogtreecommitdiff
path: root/src/setup.c
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2023-08-03 17:02:57 -0700
committerVito Caputo <vcaputo@pengaru.com>2023-08-03 17:02:57 -0700
commitf2ad42777ddf96038e08a29cce81acc1b426ae1e (patch)
tree16ccbad5878899644449f93ed39b137b4d948485 /src/setup.c
parent595d5e8b54dde06d7f624d4e64458a2648477669 (diff)
til_settings: honor til_setting_t.nocheck in spec_check
Trivial refactor s/til_setting_spec_check/til_setting_check_spec/ so it operates on a til_setting_t as opposed to the bare value. With the containing til_setting_t onhand it can be responsible for bypassing the check when til_setting_t.nocheck is set. Adjusted callers in setup_interactively() and rkt_scener_update() accordingly.
Diffstat (limited to 'src/setup.c')
-rw-r--r--src/setup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/setup.c b/src/setup.c
index c607f13..715708a 100644
--- a/src/setup.c
+++ b/src/setup.c
@@ -74,7 +74,7 @@ int setup_interactively(til_settings_t *settings, int (*setup_func)(const til_se
}
}
- r = til_setting_spec_check(&desc->spec, setting->value);
+ r = til_setting_check_spec(setting, &desc->spec);
if (r < 0)
return setup_ret_failed_desc_path(desc, r, res_failed_desc_path);
© All Rights Reserved