Bugfix: Protect prev_cancelstate variables under console lock
Merge commit '03597dc' into bfgminer
Bugfix: swap32to?e: Ensure conditionals always have the same type
Merge commit '59a7de1' into bfgminer