]> mj.ucw.cz Git - libucw.git/blobdiff - lib/threads.c
Unfortunately, libraries with public API need an extra rule for their .pc.
[libucw.git] / lib / threads.c
index cd1db74df31922d76777019963f9dd31cf1cc088..f5e828f313adecb9e9ef02ec368e841fcb90ac65 100644 (file)
@@ -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;