mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-25 14:04:25 +00:00
klondike use a memcpy
This commit is contained in:
parent
9b6ae5bc42
commit
7cbe0dbf39
@ -172,7 +172,7 @@ static bool klondike_get_stats(struct cgpu_info *klncgpu)
|
|||||||
for (dev = 0; dev <= slaves; dev++) {
|
for (dev = 0; dev <= slaves; dev++) {
|
||||||
char *reply = SendCmdGetReply(klncgpu, 'S', dev, 0, NULL);
|
char *reply = SendCmdGetReply(klncgpu, 'S', dev, 0, NULL);
|
||||||
if (reply != NULL)
|
if (reply != NULL)
|
||||||
klninfo->status[dev] = *(WORKSTATUS *)(reply+2);
|
memcpy((void *)(&(klninfo->status[dev])), reply+2, sizeof(klninfo->status[dev]));
|
||||||
}
|
}
|
||||||
wr_unlock(&(klninfo->stat_lock));
|
wr_unlock(&(klninfo->stat_lock));
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user