Commit c30391225f4f301bbd1637da2c63e3aa0475904a

Con Kolivas 2013-04-26T12:35:14

Use copy_time function in bflsc driver.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/driver-bflsc.c b/driver-bflsc.c
index 8224a90..d55525e 100644
--- a/driver-bflsc.c
+++ b/driver-bflsc.c
@@ -1214,9 +1214,9 @@ static void *bflsc_get_results(void *userdata)
 
 	cgtime(&now);
 	for (i = 0; i < sc_info->sc_count; i++) {
-		memcpy(&(sc_info->sc_devs[i].last_check_result), &now, sizeof(now));
-		memcpy(&(sc_info->sc_devs[i].last_dev_result), &now, sizeof(now));
-		memcpy(&(sc_info->sc_devs[i].last_nonce_result), &now, sizeof(now));
+		copy_time(&(sc_info->sc_devs[i].last_check_result), &now);
+		copy_time(&(sc_info->sc_devs[i].last_dev_result), &now);
+		copy_time(&(sc_info->sc_devs[i].last_nonce_result), &now);
 	}
 
 	while (sc_info->shutdown == false) {