projects
/
free-sw
/
xcb
/
libxcb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set errno=0 in read_block. On Win32 there is no errno and this makes the
[free-sw/xcb/libxcb]
/
src
/
xcb_util.c
diff --git
a/src/xcb_util.c
b/src/xcb_util.c
index
2be59d2
..
e08a320
100644
(file)
--- a/
src/xcb_util.c
+++ b/
src/xcb_util.c
@@
-180,10
+180,10
@@
static int _xcb_open(char *host, char *protocol, const int display)
fd = _xcb_open_abstract(protocol, file, filelen);
if (fd >= 0 || (errno != ENOENT && errno != ECONNREFUSED))
return fd;
fd = _xcb_open_abstract(protocol, file, filelen);
if (fd >= 0 || (errno != ENOENT && errno != ECONNREFUSED))
return fd;
-
#endif
return _xcb_open_unix(protocol, file);
#endif /* !_WIN32 */
#endif
return _xcb_open_unix(protocol, file);
#endif /* !_WIN32 */
+ return -1; /* if control reaches here then something has gone wrong */
}
static int _xcb_socket(int family, int type, int proto)
}
static int _xcb_socket(int family, int type, int proto)