From b0aac46ba2d6abbc1c87272c885f11506a682d06 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Fri, 29 Apr 2022 19:43:28 -0700 Subject: modules/rtv: rtv_channel_t: s/settings/settings_as_arg/ Mechanical rename to something less ambiguous in a world with til_settings_t, til_setting_t, and til_setup_t etc. --- src/modules/rtv/rtv.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/src/modules/rtv/rtv.c b/src/modules/rtv/rtv.c index 08f4b8a..2ca58ba 100644 --- a/src/modules/rtv/rtv.c +++ b/src/modules/rtv/rtv.c @@ -27,7 +27,7 @@ typedef struct rtv_channel_t { void *module_ctxt; til_setup_t *module_setup; time_t last_on_time, cumulative_time; - char *settings; + char *settings_as_arg; txt_t *caption; unsigned order; } rtv_channel_t; @@ -125,8 +125,8 @@ static void setup_next_channel(rtv_context_t *ctxt, unsigned ticks) ctxt->channel->module_ctxt = til_module_destroy_context(ctxt->channel->module, ctxt->channel->module_ctxt); - free(ctxt->channel->settings); - ctxt->channel->settings = NULL; + free(ctxt->channel->settings_as_arg); + ctxt->channel->settings_as_arg = NULL; ctxt->caption = ctxt->channel->caption = txt_free(ctxt->channel->caption); } @@ -155,21 +155,21 @@ static void setup_next_channel(rtv_context_t *ctxt, unsigned ticks) ctxt->channel = &ctxt->channels[i]; - if (!ctxt->channel->settings) { - char *settings = NULL; + if (!ctxt->channel->settings_as_arg) { + char *settings_as_arg = NULL; txt_t *caption; - (void) til_module_randomize_setup(ctxt->channel->module, &ctxt->channel->module_setup, &settings); + (void) til_module_randomize_setup(ctxt->channel->module, &ctxt->channel->module_setup, &settings_as_arg); caption = txt_newf("Title: %s%s%s\nDescription: %s%s%s", ctxt->channel->module->name, ctxt->channel->module->author ? "\nAuthor: " : "", ctxt->channel->module->author ? : "", ctxt->channel->module->description, - settings ? "\nSettings: " : "", - settings ? settings : ""); + settings_as_arg ? "\nSettings: " : "", + settings_as_arg ? settings_as_arg : ""); ctxt->caption = ctxt->channel->caption = caption; - ctxt->channel->settings = settings ? settings : strdup(""); + ctxt->channel->settings_as_arg = settings_as_arg ? settings_as_arg : strdup(""); } ctxt->next_switch = now + ctxt->duration; -- cgit v1.2.3