From 5309da57ccb9d452677517b905f27e1cdeb144c1 Mon Sep 17 00:00:00 2001 From: Noel Maersk Date: Fri, 20 Jun 2014 16:44:58 +0300 Subject: [PATCH] config: remove unused variable. --- sgminer.c | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/sgminer.c b/sgminer.c index beb9b027..0551824f 100644 --- a/sgminer.c +++ b/sgminer.c @@ -4774,7 +4774,6 @@ retry: opt_expiry = selected; goto retry; } else if (!strncasecmp(&input, "w", 1)) { - FILE *fcfg; char *str, filename[PATH_MAX], prompt[PATH_MAX + 50]; default_save_file(filename); @@ -4794,13 +4793,9 @@ retry: } else free(str); - /*fcfg = fopen(filename, "w"); - if (!fcfg) { - wlogprint("Cannot open or create file\n"); - goto retry; - }*/ + write_config(filename); - //fclose(fcfg); + goto retry; } else if (!strncasecmp(&input, "r", 1)) {