Fix uc_tailq_empty. It did not work prior to this.

This commit is contained in:
Nils O. Selåsdal
2015-05-05 00:05:27 +02:00
parent f13a71e8ba
commit d34bd6f3cb
+1 -1
View File
@@ -68,7 +68,7 @@ static UC_INLINE void uc_tailq_init(struct TailQ *head)
*/
static UC_INLINE int uc_tailq_empty(const struct TailQ *head)
{
return head->next == head->prev;
return head->next == head;
}
/** Insert the entry between prev and next