Browse Source

Cosmetic fixes.

Con Kolivas 14 years ago
parent
commit
3ba86c49e0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main.c

+ 2 - 2
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;