diff options
author | Eric Anholt <anholt@freebsd.org> | 2003-04-09 00:42:06 +0000 |
---|---|---|
committer | Eric Anholt <anholt@freebsd.org> | 2003-04-09 00:42:06 +0000 |
commit | 6ae5e13db4efdc5197f58d75a7322baf2849dde4 (patch) | |
tree | 84f48cacf16ad1b48c977d34eeade4137a89aff9 | |
parent | e150e49e6b986effcb3b9638bdc82c5413847f58 (diff) |
Fix last-minute breakage of list_add_tail.
Pointy hat to: anholt
-rw-r--r-- | bsd-core/drm_linux_list.h | 4 | ||||
-rw-r--r-- | bsd/drm_linux_list.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/bsd-core/drm_linux_list.h b/bsd-core/drm_linux_list.h index 6883030d..ef87ee66 100644 --- a/bsd-core/drm_linux_list.h +++ b/bsd-core/drm_linux_list.h @@ -47,10 +47,10 @@ list_empty(struct list_head *head) { static __inline__ void list_add_tail(struct list_head *entry, struct list_head *head) { - (head)->prev = entry; - (entry)->next = head; (entry)->prev = (head)->prev; + (entry)->next = head; (head)->prev->next = entry; + (head)->prev = entry; } static __inline__ void diff --git a/bsd/drm_linux_list.h b/bsd/drm_linux_list.h index 6883030d..ef87ee66 100644 --- a/bsd/drm_linux_list.h +++ b/bsd/drm_linux_list.h @@ -47,10 +47,10 @@ list_empty(struct list_head *head) { static __inline__ void list_add_tail(struct list_head *entry, struct list_head *head) { - (head)->prev = entry; - (entry)->next = head; (entry)->prev = (head)->prev; + (entry)->next = head; (head)->prev->next = entry; + (head)->prev = entry; } static __inline__ void |