Skip to content
Snippets Groups Projects
Commit 910e1857 authored by Guido Günther's avatar Guido Günther
Browse files

virthreadpthread: don't try to cast pthread_t to void*

Fixes another build failure on kFreeBSD
parent 63fd519c
No related branches found
No related tags found
No related merge requests found
......@@ -10,3 +10,4 @@ Don-t-fail-if-we-can-t-setup-avahi.patch
Reduce-udevadm-settle-timeout-to-10-seconds.patch
debian/Debianize-systemd-service-files.patch
Allow-xen-toolstack-to-find-it-s-binaries.patch
virthreadpthread-don-t-try-to-cast-pthread_t-to-void.patch
From: =?UTF-8?q?Guido=20G=C3=BCnther?= <agx@sigxcpu.org>
Date: Thu, 2 May 2013 12:03:18 +0200
Subject: virthreadpthread: don't try to cast pthread_t to void*
This fixes the build on kFreeBSD that otherwise fails with:
util/virthreadpthread.c: In function 'virThreadSelfID':
util/virthreadpthread.c:222:27: error: cast from function call of type 'pthread_t' to non-matching type 'void *' [-Werror=bad-function-cast]
---
src/util/virthreadpthread.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/util/virthreadpthread.c b/src/util/virthreadpthread.c
index b42b333..8d5e197 100644
--- a/src/util/virthreadpthread.c
+++ b/src/util/virthreadpthread.c
@@ -219,7 +219,7 @@ int virThreadSelfID(void)
tid = syscall(SYS_gettid);
return (int)tid;
#else
- return (int)(intptr_t)(void *)pthread_self();
+ return (int)(intptr_t)pthread_self();
#endif
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment