From 55ba3e75562ffe150175074c53e8f3a44ffd6968 Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sun, 7 Jan 2018 23:11:03 +0000 Subject: [PATCH] Comments about the unused (never used?) config field: scfg_cmd --- src/sbbs3/scfgdefs.h | 2 +- src/sbbs3/scfglib1.c | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/sbbs3/scfgdefs.h b/src/sbbs3/scfgdefs.h index 4aeff2a3ef..e23cb37202 100644 --- a/src/sbbs3/scfgdefs.h +++ b/src/sbbs3/scfgdefs.h @@ -586,7 +586,7 @@ typedef struct char readmail_mod[LEN_CMD+1]; /* Reading mail module */ char scanposts_mod[LEN_CMD+1]; /* Scanning posts (in a single sub) module */ char scansubs_mod[LEN_CMD+1]; /* Scanning sub-boards module */ - char scfg_cmd[LEN_CMD+1]; /* SCFG command line */ + char scfg_cmd[LEN_CMD+1]; /* SCFG command line - unused! */ uchar smb_retry_time; /* Seconds to retry on SMBs */ uint16_t sec_warn; /* Seconds before inactivity warning */ uint16_t sec_hangup; /* Seconds before inactivity hang-up */ diff --git a/src/sbbs3/scfglib1.c b/src/sbbs3/scfglib1.c index f0c007d052..8d26222594 100644 --- a/src/sbbs3/scfglib1.c +++ b/src/sbbs3/scfglib1.c @@ -119,9 +119,7 @@ BOOL read_node_cfg(scfg_t* cfg, char* error) if(!cfg->node_sem_check) cfg->node_sem_check=60; get_int(cfg->node_stat_check,instream); if(!cfg->node_stat_check) cfg->node_stat_check=10; - get_str(cfg->scfg_cmd,instream); - if(!cfg->scfg_cmd[0]) - strcpy(cfg->scfg_cmd,"%!scfg %k"); + get_str(cfg->scfg_cmd,instream); // unused get_int(cfg->sec_warn,instream); if(!cfg->sec_warn) cfg->sec_warn=180; -- GitLab