[systemd-devel] [PATCH 2/2] Fixing typo in LIST_FIND_HEAD

Fabiano Fidencio fidencio at profusion.mobi
Mon Sep 27 14:34:56 PDT 2010


Just removing a parenthesis
---
 src/list.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/list.h b/src/list.h
index 9380f36..e49d953 100644
--- a/src/list.h
+++ b/src/list.h
@@ -77,7 +77,7 @@
         do {                                                            \
                 t *_item = (item);                                      \
                 assert(_item);                                          \
-                while ((_item->name##_prev)                             \
+                while (_item->name##_prev)                              \
                        _item = _item->name##_prev;                      \
                 (head) = _item;                                         \
         } while (false)
-- 
1.7.3



More information about the systemd-devel mailing list