Explorar o código

[LibOS] Use right type, struct wake_queue_node*, instead of void*

Isaku Yamahata %!s(int64=4) %!d(string=hai) anos
pai
achega
5a84d36e8c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      LibOS/shim/include/shim_thread.h

+ 1 - 1
LibOS/shim/include/shim_thread.h

@@ -251,7 +251,7 @@ static inline void thread_wakeup (struct shim_thread * thread)
  *
  * Returns 0 if the thread was added to the queue, 1 otherwise. */
 static inline int add_thread_to_queue(struct wake_queue_head* queue, struct shim_thread* thread) {
-    void* nptr = NULL;
+    struct wake_queue_node* nptr = NULL;
     struct wake_queue_node* qnode = &thread->wake_queue;
 
     /* Atomic cmpxchg is enough, no need to take thread->lock */