From 7a9e162b8ed3f7c859b64ac7eb9ea0d91a037d02 Mon Sep 17 00:00:00 2001 From: ckolivas Date: Thu, 29 Jan 2015 11:49:46 +1100 Subject: [PATCH] Rename instance to user in __drop_client --- src/stratifier.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index 5e88e469..bc548e8c 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -1183,14 +1183,14 @@ out: } /* Ret = 1 is disconnected, 2 is killed, 3 is workerless killed */ -static int __drop_client(sdata_t *sdata, stratum_instance_t *client, user_instance_t *instance) +static int __drop_client(sdata_t *sdata, stratum_instance_t *client, user_instance_t *user) { stratum_instance_t *old_client = NULL; int ret; HASH_DEL(sdata->stratum_instances, client); - if (instance) - DL_DELETE(instance->clients, client); + if (user) + DL_DELETE(user->clients, client); HASH_FIND(hh, sdata->disconnected_instances, &client->enonce1_64, sizeof(uint64_t), old_client); /* Only keep around one copy of the old client in server mode */ if (!client->ckp->proxy && !old_client && client->enonce1_64 && client->authorised) {