From: Sebastian Herbszt Date: Sun, 19 Jul 2009 13:16:09 +0000 (+0200) Subject: qemu-thread: use pthread_equal X-Git-Tag: v0.11.0-rc1~15 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=cc234b83c6bca8a79fa4e385b520155f2d1d3ba7;p=users%2Fdwmw2%2Fqemu.git qemu-thread: use pthread_equal Fixes qemu-thread.c: In function `qemu_thread_equal': qemu-thread.c:161: error: invalid operands to binary == Use of pthread_equal suggested by Filip Navara. Signed-off-by: Sebastian Herbszt Signed-off-by: Anthony Liguori --- diff --git a/qemu-thread.c b/qemu-thread.c index 719cfcddd4..3923db74ee 100644 --- a/qemu-thread.c +++ b/qemu-thread.c @@ -158,6 +158,6 @@ void qemu_thread_self(QemuThread *thread) int qemu_thread_equal(QemuThread *thread1, QemuThread *thread2) { - return (thread1->thread == thread2->thread); + return pthread_equal(thread1->thread, thread2->thread); }