Browse Source

Don't use instance as a name for user_instance_t in worker_instance

master
ckolivas 10 years ago
parent
commit
915e64b5fb
  1. 4
      src/stratifier.c

4
src/stratifier.c

@ -191,7 +191,7 @@ struct user_instance {
/* Combined data from workers with the same workername */ /* Combined data from workers with the same workername */
struct worker_instance { struct worker_instance {
user_instance_t *instance; user_instance_t *user_instance;
char *workername; char *workername;
worker_instance_t *next; 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_instance_t *worker = ckzalloc(sizeof(worker_instance_t));
worker->workername = strdup(workername); worker->workername = strdup(workername);
worker->instance = user; worker->user_instance = user;
DL_APPEND(user->worker_instances, worker); DL_APPEND(user->worker_instances, worker);
new_worker = true; new_worker = true;
worker->start_time = time(NULL); worker->start_time = time(NULL);

Loading…
Cancel
Save