From df1465f27546ac3e558dde07047b4c51d6f01cd9 Mon Sep 17 00:00:00 2001 From: Con Kolivas Date: Sat, 14 Feb 2015 11:20:45 +1100 Subject: [PATCH] Use msg_id variable for clarity --- src/stratifier.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/stratifier.c b/src/stratifier.c index c1f2c0b0..b28e61a9 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -3294,8 +3294,11 @@ out_unlock: /* Submit share to upstream pool in proxy mode. We submit valid and * stale shares and filter out the rest. */ if (wb && wb->proxy && submit) { + int msg_id = 0; + + json_get_int(&msg_id, json_msg, "id"); LOGINFO("Submitting share upstream: %s", hexhash); - submit_share(client, id, nonce2, ntime, nonce, json_integer_value(json_object_get(json_msg, "id"))); + submit_share(client, id, nonce2, ntime, nonce, msg_id); } add_submit(ckp, client, diff, result, submit);