Browse Source

Make pool_disabled the first in the enums == 0, fixing the pool enabled count which compares if value is not enabled before enabling it.

Con Kolivas 13 years ago
parent
commit
3576abf8a7
1 changed files with 3 additions and 1 deletions
  1. 3 1
      miner.h

+ 3 - 1
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,
 };