diff options
author | Vito Caputo <vcaputo@pengaru.com> | 2023-08-30 21:54:25 -0700 |
---|---|---|
committer | Vito Caputo <vcaputo@pengaru.com> | 2023-08-30 21:54:25 -0700 |
commit | a8de0bdf8cf1bac99dd9823db6f353323bd4b40a (patch) | |
tree | 9f4bc12b1e84c371209dc6a1d2ae77c8b2fbd3b7 /src | |
parent | f86cb4f483da1a0ea89b1d7be7983e427b6d4465 (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/submit/submit.c | 6 |
1 files 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; |