summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRoman Gilg <subdiff@gmail.com>2018-02-09 23:40:42 +0100
committerPeter Hutterer <peter.hutterer@who-t.net>2018-02-12 08:09:53 +1000
commit2ff6eaad85fd702e3cc597c44ccf2210570004ea (patch)
treedefadf75c52876c4513d3a205dbde13155879df8 /include
parentbebcc8477c8070ade9dd4be7299c718baeab3d7a (diff)
Correct xorg_list_is_empty return value description
The helper xorg_list_is_empty returns True when the list is empty and not when it contains one or more elements. Signed-off-by: Roman Gilg <subdiff@gmail.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'include')
-rw-r--r--include/list.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/list.h b/include/list.h
index 3f0574d43..f81d97fc1 100644
--- a/include/list.h
+++ b/include/list.h
@@ -211,7 +211,8 @@ xorg_list_del(struct xorg_list *entry)
* Example:
* xorg_list_is_empty(&bar->list_of_foos);
*
- * @return True if the list contains one or more elements or False otherwise.
+ * @return True if the list is empty or False if the list contains one or more
+ * elements.
*/
static inline int
xorg_list_is_empty(struct xorg_list *head)