From 915e64b5fb2ebbe159f6dd1635ceca9c1989183e Mon Sep 17 00:00:00 2001 From: ckolivas Date: Thu, 29 Jan 2015 11:33:28 +1100 Subject: [PATCH] Don't use instance as a name for user_instance_t in worker_instance --- src/stratifier.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stratifier.c b/src/stratifier.c index c190c6ba..5e88e469 100644 --- a/src/stratifier.c +++ b/src/stratifier.c @@ -191,7 +191,7 @@ struct user_instance { /* Combined data from workers with the same workername */ struct worker_instance { - user_instance_t *instance; + user_instance_t *user_instance; char *workername; worker_instance_t *next; @@ -2187,7 +2187,7 @@ static user_instance_t *generate_user(ckpool_t *ckp, stratum_instance_t *client, worker_instance_t *worker = ckzalloc(sizeof(worker_instance_t)); worker->workername = strdup(workername); - worker->instance = user; + worker->user_instance = user; DL_APPEND(user->worker_instances, worker); new_worker = true; worker->start_time = time(NULL);