summaryrefslogtreecommitdiff
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
parente7dd32710f3fcff0bbbaf33807fb65b78a43e2fb (diff)
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>
-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;