From eca6ace2d59d1ad28064b66fe5ba83025f3e9642 Mon Sep 17 00:00:00 2001 From: Kano Date: Mon, 12 Aug 2013 09:00:52 +1000 Subject: [PATCH] util.c update quit call for new functions --- util.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/util.c b/util.c index 247a4edf..81008f38 100644 --- a/util.c +++ b/util.c @@ -1282,11 +1282,11 @@ static bool parse_notify(struct pool *pool, json_t *val) free(pool->swork.cb2); pool->swork.cb1 = calloc(pool->swork.cb1_len, 1); if (unlikely(!pool->swork.cb1)) - quit(1, "Failed to calloc swork cb1 in parse_notify"); + quithere(1, "Failed to calloc swork cb1"); hex2bin(pool->swork.cb1, pool->swork.coinbase1, pool->swork.cb1_len); pool->swork.cb2 = calloc(pool->swork.cb2_len, 1); if (unlikely(!pool->swork.cb2)) - quit(1, "Failed to calloc swork cb2 in parse_notify"); + quithere(1, "Failed to calloc swork cb2"); hex2bin(pool->swork.cb2, pool->swork.coinbase2, pool->swork.cb2_len); cg_wunlock(&pool->data_lock); @@ -1721,7 +1721,7 @@ resend: free(pool->nonce1bin); pool->nonce1bin = calloc(pool->n1_len, 1); if (unlikely(!pool->nonce1bin)) - quit(1, "Failed to calloc pool->nonce1bin in initiate_stratum"); + quithere(1, "Failed to calloc pool->nonce1bin"); hex2bin(pool->nonce1bin, pool->nonce1, pool->n1_len); pool->n2size = n2size; cg_wunlock(&pool->data_lock);