[PATCH weston] clients: fix errno handling

Daniel Stone daniel at fooishbar.org
Thu Jan 19 10:09:10 UTC 2017


On 18 January 2017 at 22:21, Peter Hutterer <peter.hutterer at who-t.net> wrote:
> clients/editor.c: In function ‘read_file’:
> clients/editor.c:1578:16: warning: logical ‘or’ applied to non-boolean
> constant [-Wlogical-op]
>   errno = errsv || EINVAL;
>
> This works in the shell, but not in C. Introduced in 411ffabbb56b
>
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
> Changes to v1:
> - first version didn't return the right errno, whoops :)

Pushed with review, thanks.

To ssh://git.freedesktop.org/git/wayland/weston
   0bbe624..c8b4645  push -> master

Cheers,
Daniel


More information about the wayland-devel mailing list