Skip to content

Commit

Permalink
Correct xorg_list_is_empty return value description
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
romangg authored and whot committed Feb 11, 2018
1 parent bebcc84 commit 2ff6eaa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ff6eaa

Please sign in to comment.