[Xcb-commit] libxcb: src
Jeremy Huddleston
jeremyhu at kemper.freedesktop.org
Thu Apr 10 09:54:56 PDT 2014
src/xcb_util.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
New commits:
commit 29e419c5840a1eeda3336a0802686ee723dcaab3
Author: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
Date: Sat Apr 5 21:09:42 2014 -0700
xcb_open: Minor code cleanup for better readability
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
Reviewed-by: Uli Schlachter <psychon at znc.in>
diff --git a/src/xcb_util.c b/src/xcb_util.c
index 1625742..f8d381d 100644
--- a/src/xcb_util.c
+++ b/src/xcb_util.c
@@ -438,16 +438,17 @@ xcb_connection_t *xcb_connect_to_display_with_auth_info(const char *displayname,
if(!parsed) {
c = _xcb_conn_ret_error(XCB_CONN_CLOSED_PARSE_ERR);
goto out;
- } else {
+ }
+
#ifdef _WIN32
- WSADATA wsaData;
- if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0) {
- c = _xcb_conn_ret_error(XCB_CONN_ERROR);
- goto out;
- }
-#endif
- fd = _xcb_open(host, protocol, display);
+ WSADATA wsaData;
+ if (WSAStartup(MAKEWORD(2, 2), &wsaData) != 0) {
+ c = _xcb_conn_ret_error(XCB_CONN_ERROR);
+ goto out;
}
+#endif
+
+ fd = _xcb_open(host, protocol, display);
if(fd == -1) {
c = _xcb_conn_ret_error(XCB_CONN_ERROR);
More information about the xcb-commit
mailing list