From 3ba86c49e0a5a983a6b03b82ebe534ddc050ae7a Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 15 Oct 2011 14:55:51 +1100 Subject: [PATCH] Cosmetic fixes. --- main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.c b/main.c index 24e0d131..f7c087fe 100644 --- a/main.c +++ b/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;