projects
/
free-sw
/
xcb
/
libxcb
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Move _xcb_read_block to xcb_in.c and make it static. Change calls in xcb_conn.c to...
[free-sw/xcb/libxcb]
/
src
/
xcb_conn.c
diff --git
a/src/xcb_conn.c
b/src/xcb_conn.c
index
de55951
..
698cf51
100644
(file)
--- a/
src/xcb_conn.c
+++ b/
src/xcb_conn.c
@@
-88,7
+88,7
@@
static int read_setup(XCBConnection *c)
if(!c->setup)
return 0;
if(!c->setup)
return 0;
- if(_xcb_
read_block(c->fd
, c->setup, sizeof(XCBConnSetupGenericRep)) != sizeof(XCBConnSetupGenericRep))
+ if(_xcb_
in_read_block(c
, c->setup, sizeof(XCBConnSetupGenericRep)) != sizeof(XCBConnSetupGenericRep))
return 0;
{
return 0;
{
@@
-98,7
+98,7
@@
static int read_setup(XCBConnection *c)
c->setup = tmp;
}
c->setup = tmp;
}
- if(_xcb_
read_block(c->fd
, (char *) c->setup + sizeof(XCBConnSetupGenericRep), c->setup->length * 4) <= 0)
+ if(_xcb_
in_read_block(c
, (char *) c->setup + sizeof(XCBConnSetupGenericRep), c->setup->length * 4) <= 0)
return 0;
/* 0 = failed, 2 = authenticate, 1 = success */
return 0;
/* 0 = failed, 2 = authenticate, 1 = success */