mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-02 09:01:39 -05:00
os: remove unneeded errno assignment
If socket() fails, it will return failure code. No need to reset errno beforehand. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
This commit is contained in:
parent
e7dd32710f
commit
1f827a4776
1 changed files with 0 additions and 1 deletions
|
|
@ -56,7 +56,6 @@ wl_os_socket_cloexec(int domain, int type, int protocol)
|
|||
int fd;
|
||||
|
||||
#ifdef SOCK_CLOEXEC
|
||||
errno = 0;
|
||||
fd = socket(domain, type | SOCK_CLOEXEC, protocol);
|
||||
if (fd >= 0)
|
||||
return fd;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue