mirror of
https://github.com/GOSTSec/sgminer
synced 2025-02-02 10:04:33 +00:00
Cosmetic fixes.
This commit is contained in:
parent
8d96722c04
commit
3ba86c49e0
4
main.c
4
main.c
@ -1765,7 +1765,7 @@ static bool jobj_binary(const json_t *obj, const char *key,
|
|||||||
tmp = json_object_get(obj, key);
|
tmp = json_object_get(obj, key);
|
||||||
if (unlikely(!tmp)) {
|
if (unlikely(!tmp)) {
|
||||||
if (unlikely(required))
|
if (unlikely(required))
|
||||||
applog(LOG_ERR, "JSON key '%s' not found", key);
|
applog(LOG_ERR, "JSON key '%s' not found", key);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
hexstr = json_string_value(tmp);
|
hexstr = json_string_value(tmp);
|
||||||
@ -1790,7 +1790,7 @@ static bool work_decode(const json_t *val, struct work *work)
|
|||||||
work->midstate, sizeof(work->midstate), false))) {
|
work->midstate, sizeof(work->midstate), false))) {
|
||||||
// Calculate it ourselves
|
// Calculate it ourselves
|
||||||
union {
|
union {
|
||||||
char c[64];
|
unsigned char c[64];
|
||||||
uint32_t i[16];
|
uint32_t i[16];
|
||||||
} data;
|
} data;
|
||||||
int swapcounter;
|
int swapcounter;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user