aboutsummaryrefslogtreecommitdiffstats
path: root/P3
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--P3/server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/P3/server.c b/P3/server.c
index 065817e..6659e38 100644
--- a/P3/server.c
+++ b/P3/server.c
@@ -76,10 +76,9 @@ void *dynamic_pool_size_update(void *arg) {
wIndex++;
Wargs[i] = i;
pthread_create(&wID[i], &attr, worker, (void *)&Wargs[i]); //TODO: Worker arguments
- char* threadName = calloc(16,sizeof(char));
+ char threadName[16];
sprintf(threadName, "Worker %d", i);
pthread_setname_np(wID[i], threadName);
- free(threadName);
}
}
free(Wargs);