From 67b2649dc4b6726c6d11fb0e41429ae5de82b0e8 Mon Sep 17 00:00:00 2001 From: Jamey Sharp Date: Fri, 24 Feb 2006 01:40:45 -0800 Subject: Move _xcb_read_block to xcb_in.c and make it static. Change calls in xcb_conn.c to _xcb_in_read_block instead. --- src/xcb_conn.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/xcb_conn.c') diff --git a/src/xcb_conn.c b/src/xcb_conn.c index de55951..698cf51 100644 --- 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(_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; { @@ -98,7 +98,7 @@ static int read_setup(XCBConnection *c) 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 */ -- cgit v1.2.3