[PATCH 4/6] include: a new list element does not need initialization, state so

Peter Hutterer peter.hutterer at who-t.net
Thu Dec 1 14:56:31 PST 2011


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 include/list.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/list.h b/include/list.h
index 733a579..677fd92 100644
--- a/include/list.h
+++ b/include/list.h
@@ -141,7 +141,8 @@ __list_add(struct list *entry,
 }
 
 /**
- * Insert a new element after the given list head.
+ * Insert a new element after the given list head. The new element does not
+ * need to be initialised as empty list.
  * The list changes from:
  *      head → some element → ...
  * to
-- 
1.7.7.1



More information about the xorg-devel mailing list