From 3576abf8a72fd1532dbe64994627390e6ac4634f Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 5 Aug 2012 15:43:27 +1000 Subject: [PATCH] Make pool_disabled the first in the enums == 0, fixing the pool enabled count which compares if value is not enabled before enabling it. --- miner.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/miner.h b/miner.h index 04b765c0..5afa071b 100644 --- a/miner.h +++ b/miner.h @@ -706,9 +706,11 @@ struct curl_ent { struct timeval tv; }; +/* Disabled needs to be the lowest enum as a freshly calloced value will then + * equal disabled */ enum pool_enable { - POOL_ENABLED, POOL_DISABLED, + POOL_ENABLED, POOL_REJECTING, };