diff options
| author | Pekka Paalanen <ppaalanen@gmail.com> | 2012-04-23 11:37:40 +0300 |
|---|---|---|
| committer | Pekka Paalanen <ppaalanen@gmail.com> | 2012-04-25 09:32:57 +0300 |
| commit | 1f827a477607d0a9dc9520fc6c53c936befb663d (patch) | |
| tree | d17ff5786e72bf097d60b7943c7769402ab50183 /src/wayland-os.c | |
| parent | tests: Test invoking closures built with wl_closure_vmarshal() (diff) | |
| download | wayland-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.c | 1 |
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; |
