aboutsummaryrefslogtreecommitdiffstats
path: root/src/wayland-os.c
diff options
context:
space:
mode:
authorPekka Paalanen <ppaalanen@gmail.com>2012-04-23 11:37:40 +0300
committerPekka Paalanen <ppaalanen@gmail.com>2012-04-25 09:32:57 +0300
commit1f827a477607d0a9dc9520fc6c53c936befb663d (patch)
treed17ff5786e72bf097d60b7943c7769402ab50183 /src/wayland-os.c
parenttests: Test invoking closures built with wl_closure_vmarshal() (diff)
downloadwayland-1f827a477607d0a9dc9520fc6c53c936befb663d.tar
wayland-1f827a477607d0a9dc9520fc6c53c936befb663d.tar.gz
wayland-1f827a477607d0a9dc9520fc6c53c936befb663d.tar.bz2
wayland-1f827a477607d0a9dc9520fc6c53c936befb663d.tar.lz
wayland-1f827a477607d0a9dc9520fc6c53c936befb663d.tar.xz
wayland-1f827a477607d0a9dc9520fc6c53c936befb663d.tar.zst
wayland-1f827a477607d0a9dc9520fc6c53c936befb663d.zip
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>
Diffstat (limited to 'src/wayland-os.c')
-rw-r--r--src/wayland-os.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/wayland-os.c b/src/wayland-os.c
index 5ff4391..8f75976 100644
--- a/src/wayland-os.c
+++ b/src/wayland-os.c
@@ -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;