diff options
author | Sebastian Herbszt <herbszt@gmx.de> | 2009-07-19 15:16:09 +0200 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2009-07-22 15:41:02 -0500 |
commit | cc234b83c6bca8a79fa4e385b520155f2d1d3ba7 (patch) | |
tree | a9c1ab47e5c3f9a6bc5cf20cd15cb42fe05d7538 | |
parent | 96046435baa8f43f247d2fb22222ca44e35a7f9f (diff) |
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 <herbszt@gmx.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
-rw-r--r-- | qemu-thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |