[Xcb-commit] libxcb: 2 commits - src
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Tue Jan 10 17:06:30 UTC 2023
src/xcb_util.c | 4 ++++
1 file changed, 4 insertions(+)
New commits:
commit 3333d5bde8baaca8981e806ef86b74f4adb77ba7
Author: Daniel G <giri at nwrk.biz>
Date: Mon Jan 9 16:21:35 2023 +0000
Fix indentation.
diff --git a/src/xcb_util.c b/src/xcb_util.c
index edda641..2121098 100644
--- a/src/xcb_util.c
+++ b/src/xcb_util.c
@@ -390,9 +390,9 @@ static int _xcb_open_tcp(const char *host, char *protocol, const unsigned short
if (_xcb_do_connect(fd, addr->ai_addr, addr->ai_addrlen) >= 0)
break;
#ifdef _WIN32
- closesocket(fd);
+ closesocket(fd);
#else
- close(fd);
+ close(fd);
#endif
fd = -1;
}
commit 973b510e954f6989ed773f8b357ca50fbc99bced
Author: Daniel G <giri at nwrk.biz>
Date: Sat Jan 7 19:35:47 2023 +0000
Fix windows build.
diff --git a/src/xcb_util.c b/src/xcb_util.c
index 0296ce0..edda641 100644
--- a/src/xcb_util.c
+++ b/src/xcb_util.c
@@ -389,7 +389,11 @@ static int _xcb_open_tcp(const char *host, char *protocol, const unsigned short
fd = _xcb_socket(addr->ai_family, addr->ai_socktype, addr->ai_protocol);
if (_xcb_do_connect(fd, addr->ai_addr, addr->ai_addrlen) >= 0)
break;
- close(fd);
+#ifdef _WIN32
+ closesocket(fd);
+#else
+ close(fd);
+#endif
fd = -1;
}
freeaddrinfo(results);
More information about the xcb-commit
mailing list