X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Fthreads.c;h=f5e828f313adecb9e9ef02ec368e841fcb90ac65;hb=231e128f91f6cc7f23f5d2392dffaa7857f1dcfa;hp=cd1db74df31922d76777019963f9dd31cf1cc088;hpb=07ced4c0ae31a2fc251e3da2f0ced104cb185d70;p=libucw.git diff --git a/lib/threads.c b/lib/threads.c index cd1db74d..f5e828f3 100644 --- a/lib/threads.c +++ b/lib/threads.c @@ -34,7 +34,7 @@ ucwlib_threads_init(void) static int ucwlib_tid(void) { - static tid_counter; + static int tid_counter; ucwlib_lock(); int tid = ++tid_counter; @@ -70,7 +70,7 @@ ucwlib_unlock(void) #else struct ucwlib_context * -ucw_thread_context(void) +ucwlib_thread_context(void) { static struct ucwlib_context ucwlib_context; return &ucwlib_context;