From 7c66d87c82ac6b06901e7cb39ed90db43bc4b053 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Sat, 19 Mar 2022 14:55:30 -0700 Subject: *: de-constify til_setting_t throughout Now that til_setting_t.desc is not only a thing, but a thing that is intended to be refreshed regularly in the course of things like GUI interactive settings construction, it's not really appropriate to try even act like this these are const anymore. --- src/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index 28601e9..c6b0362 100644 --- a/src/main.c +++ b/src/main.c @@ -56,10 +56,10 @@ typedef struct setup_t { */ /* select video backend if not yet selected, then setup the selected backend. */ -static int setup_video(til_settings_t *settings, const til_setting_t **res_setting, const til_setting_desc_t **res_desc) +static int setup_video(til_settings_t *settings, til_setting_t **res_setting, const til_setting_desc_t **res_desc) { - const til_setting_t *setting; - const char *video; + til_setting_t *setting; + const char *video; video = til_settings_get_key(settings, 0, &setting); if (!video || !setting->desc) { -- cgit v1.2.1