mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-22 20:44:19 +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);
|
||||
if (unlikely(!tmp)) {
|
||||
if (unlikely(required))
|
||||
applog(LOG_ERR, "JSON key '%s' not found", key);
|
||||
applog(LOG_ERR, "JSON key '%s' not found", key);
|
||||
return false;
|
||||
}
|
||||
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))) {
|
||||
// Calculate it ourselves
|
||||
union {
|
||||
char c[64];
|
||||
unsigned char c[64];
|
||||
uint32_t i[16];
|
||||
} data;
|
||||
int swapcounter;
|
||||
|
Loading…
x
Reference in New Issue
Block a user