[PATCH] Correct xorg_list_is_empty return value description
Peter Hutterer
peter.hutterer at who-t.net
Sun Feb 11 22:12:45 UTC 2018
On Fri, Feb 09, 2018 at 11:40:42PM +0100, Roman Gilg wrote:
> 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 at gmail.com>
oops, thanks for the fix. pushed as
remote: Updating patchwork state for https://patchwork.freedesktop.org/project/Xorg/list/
remote: I: patch #203773 updated using rev 2ff6eaad85fd702e3cc597c44ccf2210570004ea.
remote: I: 1 patch(es) updated to state Accepted.
To git+ssh://git.freedesktop.org/git/xorg/xserver
bebcc8477..2ff6eaad8 master -> master
Cheers,
Peter
> ---
> include/list.h | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/include/list.h b/include/list.h
> index 3f0574d..f81d97f 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)
> --
> 2.7.4
>
> _______________________________________________
> xorg-devel at lists.x.org: X.Org development
> Archives: http://lists.x.org/archives/xorg-devel
> Info: https://lists.x.org/mailman/listinfo/xorg-devel
>
More information about the xorg-devel
mailing list