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

Commit a1450a8a7 removed errno header but forgot to remove all error()
calls.

Signed-off-by: Marius Vlad <marius.vlad@collabora.com>
dev
Marius Vlad 6 years ago
parent a1450a8a71
commit 38c66ccb21
  1. 6
      libweston/weston-launch.c

@ -850,8 +850,10 @@ main(int argc, char *argv[])
fds[1].events = POLLIN; fds[1].events = POLLIN;
n = poll(fds, 2, -1); n = poll(fds, 2, -1);
if (n < 0) if (n < 0) {
error(0, errno, "poll failed"); fprintf(stderr, "poll failed: %s\n", strerror(errno));
return -1;
}
if (fds[0].revents & POLLIN) if (fds[0].revents & POLLIN)
handle_socket_msg(&wl); handle_socket_msg(&wl);
if (fds[1].revents) if (fds[1].revents)

Loading…
Cancel
Save