From fc66a41e85975100e255538367c30efc1a2f2f46 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sun, 2 Dec 2012 20:49:40 +1100 Subject: [PATCH] Style police. --- util.c | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/util.c b/util.c index 82c0907e..9262f648 100644 --- a/util.c +++ b/util.c @@ -1441,41 +1441,38 @@ void dev_error(struct cgpu_info *dev, enum dev_reason reason) dev->device_last_not_well = time(NULL); dev->device_not_well_reason = reason; - - switch (reason) - { + switch (reason) { case REASON_THREAD_FAIL_INIT: dev->thread_fail_init_count++; - break; + break; case REASON_THREAD_ZERO_HASH: dev->thread_zero_hash_count++; - break; + break; case REASON_THREAD_FAIL_QUEUE: dev->thread_fail_queue_count++; - break; + break; case REASON_DEV_SICK_IDLE_60: dev->dev_sick_idle_60_count++; - break; + break; case REASON_DEV_DEAD_IDLE_600: dev->dev_dead_idle_600_count++; - break; + break; case REASON_DEV_NOSTART: dev->dev_nostart_count++; - break; + break; case REASON_DEV_OVER_HEAT: dev->dev_over_heat_count++; - break; + break; case REASON_DEV_THERMAL_CUTOFF: dev->dev_thermal_cutoff_count++; - break; + break; case REASON_DEV_COMMS_ERROR: dev->dev_comms_error_count++; - break; + break; case REASON_DEV_THROTTLE: dev->dev_throttle_count++; - break; + break; } - } /* Realloc an existing string to fit an extra string s, appending s to it. */