summaryrefslogtreecommitdiff
path: root/ot_udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'ot_udp.c')
-rw-r--r--ot_udp.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/ot_udp.c b/ot_udp.c
index 14210c3..87741da 100644
--- a/ot_udp.c
+++ b/ot_udp.c
@@ -235,13 +235,12 @@ void udp_init(void) {
235 udp_generate_rijndael_round_key(); 235 udp_generate_rijndael_round_key();
236} 236}
237 237
238void udp_workers_install(int64_t sock, unsigned int worker_count) { 238void udp_worker_install(int64_t sock) {
239 pthread_t thread_id; 239 pthread_t thread_id;
240 240
241#ifdef _DEBUG 241#ifdef _DEBUG
242 fprintf(stderr, "Installing %d workers on udp socket %ld\n", worker_count, (unsigned long)sock); 242 fprintf(stderr, "Installing a worker on udp socket %ld\n", (unsigned long)sock);
243#endif 243#endif
244 while (worker_count--) 244 pthread_create(&thread_id, NULL, udp_worker, (void *)sock);
245 pthread_create(&thread_id, NULL, udp_worker, (void *)sock);
246} 245}
247 246