OSDN Git Service
(root)
/
android-x86
/
external-libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8f73c2
)
[FreeBSD] Fix linux list compat list_for_each_safe()
author
Robert Noland
<rnoland@2hip.net>
Fri, 10 Oct 2008 02:13:26 +0000
(22:13 -0400)
committer
Robert Noland
<rnoland@2hip.net>
Fri, 10 Oct 2008 02:13:26 +0000
(22:13 -0400)
linux_for_each_safe would not handle lists with a single entry.
bsd-core/drm_linux_list.h
patch
|
blob
|
history
diff --git
a/bsd-core/drm_linux_list.h
b/bsd-core/drm_linux_list.h
index
c9f1b3e
..
7c6a447
100644
(file)
--- a/
bsd-core/drm_linux_list.h
+++ b/
bsd-core/drm_linux_list.h
@@
-66,6
+66,6
@@
list_del(struct list_head *entry) {
#define list_for_each_safe(entry, temp, head) \
for (entry = (head)->next, temp = (entry)->next; \
-
temp != head;
\
- entry = temp, temp =
temp
->next)
+
entry != head;
\
+ entry = temp, temp =
entry
->next)