瀏覽代碼

Fix stupid typo

Samuel Thibault 8 年之前
父節點
當前提交
36f4658a4e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/common/list.h

+ 1 - 1
src/common/list.h

@@ -271,7 +271,7 @@ static inline int ENAME##_multilist_queued_##MEMBER(TYPE *e) { \
 \
 /* Test whether the list is empty.  */ \
 static inline int ENAME##_multilist_empty_##MEMBER(struct ENAME##_multilist_##MEMBER *head) { \
-	return head->next != head; \
+	return head->next == head; \
 } \
 \
 /* Return the first element of the list.  */ \