X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fsel_thread.c;h=10b6d165f6cc75aac029f42123b5269f54b3e007;hb=8280939283c0669c7f5dddcfef027f565a795f16;hp=6e0706864ede1d6ca3cbde362247fb962fa65bb5;hpb=8272eab1f800eaa276166d9b75fd259e1a1b408c;p=pazpar2-moved-to-github.git diff --git a/src/sel_thread.c b/src/sel_thread.c index 6e07068..10b6d16 100644 --- a/src/sel_thread.c +++ b/src/sel_thread.c @@ -73,7 +73,7 @@ static void *sel_thread_handler(void *vp) { sel_thread_t p = (sel_thread_t) vp; - while(1) + while (1) { struct work_item *work_this = 0; /* wait for some work */ @@ -140,7 +140,7 @@ sel_thread_t sel_thread_create(void (*work_handler)(void *work_data), p->thread_id = nmem_malloc(nmem, sizeof(*p->thread_id) * p->no_threads); for (i = 0; i < p->no_threads; i++) - pthread_create (p->thread_id + i, 0, sel_thread_handler, p); + pthread_create(p->thread_id + i, 0, sel_thread_handler, p); return p; }