[nemiver] Fix compilation issue in tests/ due to wrong type



commit f05905e8a7a8d86d70f2cc8c6c65075fc275eb85
Author: Juan R. GarcĂ­a Blanco <juanrgar gmail com>
Date:   Mon Dec 30 19:52:19 2013 +0100

    Fix compilation issue in tests/ due to wrong type
    
        * tests/threads.cc (thread_func): Type of unused
        variable tid changed from int to pthread_t.
    
    Signed-off-by: Dodji Seketeli <dodji seketeli org>

 tests/threads.cc |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/threads.cc b/tests/threads.cc
index ed035eb..ec0ca20 100644
--- a/tests/threads.cc
+++ b/tests/threads.cc
@@ -28,7 +28,7 @@ thread_func (void *arg)
 {
     assert (arg != 0);
     thread_info *ti = static_cast<thread_info*> (arg);
-    __attribute__((unused)) int tid = ti->tid;
+    __attribute__((unused)) pthread_t tid = ti->tid;
     return NULL;
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]