From e9d64eaacaa4e2a71489b24b2b45ac26fbaead3c Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Thu, 2 Apr 2026 04:09:45 -0400 Subject: Replace conf->blah with config.blah (see the definition of "OS" in ). 6075 bytes free. --- src/main.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/main.c') diff --git a/src/main.c b/src/main.c index ed84670..b2189be 100644 --- a/src/main.c +++ b/src/main.c @@ -98,7 +98,7 @@ void txbuf_send_str(const char *str) { int fn_connect(void) { scr_display(SCR_SERVER); scr_print_current("Connecting to: "); - scr_print_current(conf->url); + scr_print_current(config.url); scr_eol_current(); err = nopen(); @@ -136,9 +136,9 @@ void init_channels(void) { char i; for(i = 0; i < MAX_SCREENS - 2; i++) { - if(conf->channels[i][0]) { + if(config.channels[i][0]) { scr_status[i + 2] = SCR_INACTIVE; - strcpy(scr_names[i + 2], conf->channels[i]); + strcpy(scr_names[i + 2], config.channels[i]); } } } @@ -167,14 +167,14 @@ void reconnect(void) { } void main(void) { - bell_type = conf->alert_type; /* TODO: have bell.s read staight from the struct */ + bell_type = config.alert_type; /* TODO: have bell.s read staight from the struct */ OS.shflok = 0; // turn off shift-lock. OS.soundr = 0; // Turn off SIO beeping sound - OS.color2 = conf->colors[0]; /* text BG, user-selected */ - OS.color1 = conf->colors[1]; + OS.color2 = config.colors[0]; /* text BG, user-selected */ + OS.color1 = config.colors[1]; OS.color0 = 0x06; /* grey for inactive */ OS.color3 = 0x46; /* red for highlight */ - OS.noclik = conf->disable_keyclick; + OS.noclik = config.disable_keyclick; hz = (GTIA_READ.pal & 0x0e) ? 60 : 50; -- cgit v1.2.3