diff options
author | sabetts <sabetts> | 2003-02-22 21:58:01 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2003-02-22 21:58:01 +0000 |
commit | 5e4c6e4a9729e1ec546535cfc6ee264768c6b987 (patch) | |
tree | 851c432e2d5edf47da0f057d927d3021822d9354 /src/linkedlist.h | |
parent | 00a37f7479fc780669afd3ad82d938a1096952d0 (diff) | |
download | ratpoison-5e4c6e4a9729e1ec546535cfc6ee264768c6b987.zip |
(list_direction_entry): no longer returns NULL
if there is only one element in the list. Instead, returns the
same element again and again.
Diffstat (limited to 'src/linkedlist.h')
-rw-r--r-- | src/linkedlist.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/linkedlist.h b/src/linkedlist.h index 4f07927..d36f07f 100644 --- a/src/linkedlist.h +++ b/src/linkedlist.h @@ -269,7 +269,6 @@ static inline void list_splice_init(struct list_head *list, typeof(pos) ret = NULL; \ struct list_head *a_head = head; \ if (pos->member.direction == a_head) { \ - if (a_head->direction != &pos->member) \ ret = list_entry(a_head->direction, \ typeof(*pos), member); \ } else { \ |