summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVito Caputo <vcaputo@pengaru.com>2022-04-29 19:43:28 -0700
committerVito Caputo <vcaputo@pengaru.com>2022-04-29 19:43:28 -0700
commitb0aac46ba2d6abbc1c87272c885f11506a682d06 (patch)
treeeca375fcf94a4c00cf10e2d44cd02afbc62511cc /src
parentaa77b6b96694496c46a9f99fa23ba2edbf973aa2 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/modules/rtv/rtv.c18
1 files 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;
© All Rights Reserved