From a8de0bdf8cf1bac99dd9823db6f353323bd4b40a Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Wed, 30 Aug 2023 21:54:25 -0700 Subject: modules/submit: switch to til_settings_get_and_describe_setting() submit_setup() doesn't have any res_setup baking -EINVAL error paths, but still transition over to enable potentially deprecating the value-oriented variant. --- src/modules/submit/submit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/modules/submit/submit.c b/src/modules/submit/submit.c index 4952d2d..fea9444 100644 --- a/src/modules/submit/submit.c +++ b/src/modules/submit/submit.c @@ -346,10 +346,10 @@ static int submit_setup(const til_settings_t *settings, til_setting_t **res_sett "on", NULL }; - const char *bilerp; + til_setting_t *bilerp; int r; - r = til_settings_get_and_describe_value(settings, + r = til_settings_get_and_describe_setting(settings, &(til_setting_spec_t){ .name = "Bilinearly interpolate cell colors", .key = "bilerp", @@ -371,7 +371,7 @@ static int submit_setup(const til_settings_t *settings, til_setting_t **res_sett if (!setup) return -ENOMEM; - if (!strcasecmp(bilerp, "on")) + if (!strcasecmp(bilerp->value, "on")) setup->bilerp = 1; *res_setup = &setup->til_setup; -- cgit v1.2.3