Deprecate the opt_fail_pause parameter, leaving a null placeholder for existing configurations.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
diff --git a/cgminer.c b/cgminer.c
index 2fa1f96..aa2fb42 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -92,7 +92,6 @@ bool opt_quiet;
static bool opt_realquiet;
bool opt_loginput;
const int opt_cutofftemp = 95;
-static int opt_fail_pause = 5;
int opt_log_interval = 5;
static int opt_queue = 1;
int opt_scantime = 60;
@@ -961,8 +960,8 @@ static struct opt_table opt_config_table[] = {
set_null, NULL, NULL,
opt_hidden),
OPT_WITH_ARG("--retry-pause|-R",
- set_int_0_to_9999, opt_show_intval, &opt_fail_pause,
- "Number of seconds to pause, between retries"),
+ set_null, NULL, NULL,
+ opt_hidden),
OPT_WITH_ARG("--rotate",
set_rotate, opt_show_intval, &opt_rotate_period,
"Change multipool strategy from failover to regularly rotate at N minutes"),
@@ -3493,8 +3492,8 @@ static void set_options(void)
clear_logwin();
retry:
wlogprint("[Q]ueue: %d\n[S]cantime: %d\n[E]xpiry: %d\n"
- "[P]ause: %d\n[W]rite config file\n[C]gminer restart\n",
- opt_queue, opt_scantime, opt_expiry, opt_fail_pause);
+ "[W]rite config file\n[C]gminer restart\n",
+ opt_queue, opt_scantime, opt_expiry);
wlogprint("Select an option or any other key to return\n");
input = getch();
@@ -3522,14 +3521,6 @@ retry:
}
opt_expiry = selected;
goto retry;
- } else if (!strncasecmp(&input, "p", 1)) {
- selected = curses_int("Seconds to pause before network retries");
- if (selected < 1 || selected > 9999) {
- wlogprint("Invalid selection\n");
- goto retry;
- }
- opt_fail_pause = selected;
- goto retry;
} else if (!strncasecmp(&input, "w", 1)) {
FILE *fcfg;
char *str, filename[PATH_MAX], prompt[PATH_MAX + 50];