From 8ee6a6afd8afa5454afb297024c3045f16b7bf02 Mon Sep 17 00:00:00 2001 From: Evan Hunt Date: Fri, 21 Apr 2017 18:16:00 -0700 Subject: [PATCH] [master] fix portability issue --- lib/isc/nothreads/include/isc/thread.h | 2 +- lib/isc/pthreads/include/isc/thread.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/isc/nothreads/include/isc/thread.h b/lib/isc/nothreads/include/isc/thread.h index be5abd81a2..6a0a944f8e 100644 --- a/lib/isc/nothreads/include/isc/thread.h +++ b/lib/isc/nothreads/include/isc/thread.h @@ -20,7 +20,7 @@ void isc_thread_setconcurrency(unsigned int level); void -isc_thread_setname(isc_thread_t, const char *); +isc_thread_setname(isc_thread_t thread, const char *name); #define isc_thread_self() ((unsigned long)0) #define isc_thread_yield() ((void)0) diff --git a/lib/isc/pthreads/include/isc/thread.h b/lib/isc/pthreads/include/isc/thread.h index 09b400075e..2b43f9e5a2 100644 --- a/lib/isc/pthreads/include/isc/thread.h +++ b/lib/isc/pthreads/include/isc/thread.h @@ -31,7 +31,7 @@ typedef isc_threadresult_t (*isc_threadfunc_t)(isc_threadarg_t); typedef pthread_key_t isc_thread_key_t; isc_result_t -isc_thread_create(isc_threadfunc_t, isc_threadarg_t, isc_thread_t *); +isc_thread_create(isc_threadfunc_t, isc_threadarg_t, isc_thread_t *name); void isc_thread_setconcurrency(unsigned int level); @@ -40,7 +40,7 @@ void isc_thread_yield(void); void -isc_thread_setname(isc_thread_t, const char *); +isc_thread_setname(isc_thread_t thread, const char *); /* XXX We could do fancier error handling... */ -- GitLab