Commit 38c66ccb authored by Marius Vlad's avatar Marius Vlad

weston-launch: Fix warning on error() not being avaiable due to removal of header

Commit a1450a8a removed errno header but forgot to remove all error()
calls.
Signed-off-by: Marius Vlad's avatarMarius Vlad <marius.vlad@collabora.com>
parent a1450a8a
Pipeline #32402 passed with stages
in 1 minute
......@@ -850,8 +850,10 @@ main(int argc, char *argv[])
fds[1].events = POLLIN;
n = poll(fds, 2, -1);
if (n < 0)
error(0, errno, "poll failed");
if (n < 0) {
fprintf(stderr, "poll failed: %s\n", strerror(errno));
return -1;
}
if (fds[0].revents & POLLIN)
handle_socket_msg(&wl);
if (fds[1].revents)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment