From 3ddffaa915add904d0bfedd25b2b5383cff9035f Mon Sep 17 00:00:00 2001 From: troky Date: Mon, 21 Jul 2014 02:26:39 +0200 Subject: [PATCH] Compatibility fix. --- sgminer.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sgminer.c b/sgminer.c index 6f4c22fb..4acccceb 100644 --- a/sgminer.c +++ b/sgminer.c @@ -7967,8 +7967,10 @@ struct _cgpu_devid_counter { static void adjust_mostdevs(void) { + int i; + most_devices = 0; - for (int i = 0; i < total_devices; i++) { + for (i = 0; i < total_devices; i++) { if (devices_enabled[i]) { most_devices++; }