diff options
author | Thomas White <taw@physics.org> | 2021-07-21 15:22:12 +0200 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2021-07-22 11:22:18 +0200 |
commit | 13d65b9785d1557e29f5f06871d01bad8e76e44c (patch) | |
tree | dfd9c52a80639882695eb63b0c87af06ebcbb29d /libcrystfel/src/thread-pool.c | |
parent | d5cf0404a08253f52c6ddf3f6d80e694b9de4e7a (diff) |
Clean up shadowed variables
Diffstat (limited to 'libcrystfel/src/thread-pool.c')
-rw-r--r-- | libcrystfel/src/thread-pool.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libcrystfel/src/thread-pool.c b/libcrystfel/src/thread-pool.c index 7860d698..0951fcc6 100644 --- a/libcrystfel/src/thread-pool.c +++ b/libcrystfel/src/thread-pool.c @@ -86,11 +86,11 @@ static void *task_worker(void *pargsv) { struct worker_args *w = pargsv; struct task_queue *q = w->tq; - int *cookie; + int *cookie_slot; - cookie = malloc(sizeof(int)); - *cookie = w->id; - pthread_setspecific(status_label_key, cookie); + cookie_slot = malloc(sizeof(int)); + *cookie_slot = w->id; + pthread_setspecific(status_label_key, cookie_slot); free(w); @@ -129,7 +129,7 @@ static void *task_worker(void *pargsv) } while ( 1 ); - free(cookie); + free(cookie_slot); return NULL; } |