[vlc-devel] [PATCH] darwin: thread: fix vlc_thread_self() return type

Steve Lhomme robux4 at ycbcr.xyz
Mon Mar 2 13:29:30 CET 2020


vlc_osthread_t is defined as a pthread_t and that's what pthread_self() returns.
---
 src/darwin/thread.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/darwin/thread.c b/src/darwin/thread.c
index 7e7de3d815e..5af2a24f130 100644
--- a/src/darwin/thread.c
+++ b/src/darwin/thread.c
@@ -238,7 +238,7 @@ int vlc_clone_detach (vlc_thread_t *th, void *(*entry) (void *), void *data,
     return vlc_clone_attr (th, &attr, entry, data, priority);
 }
 
-vlc_thread_t vlc_thread_self (void)
+pthread_t vlc_thread_self (void)
 {
     return pthread_self ();
 }
-- 
2.17.1



More information about the vlc-devel mailing list