X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_in.c;h=1d029afa94cc25203b79cf4834f831aa0c3934d8;hb=baf31b1bf20b49ec00d0f64bb7cc9c788a28c088;hp=27ccc999f5f7ce78cbd4f0905e50c37302182c74;hpb=6532c715c3805128b9976ab208f1426f691056a2;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_in.c b/src/xcb_in.c index 27ccc99..1d029af 100644 --- a/src/xcb_in.c +++ b/src/xcb_in.c @@ -77,8 +77,8 @@ static void wake_up_next_reader(xcb_connection_t *c) static int read_packet(xcb_connection_t *c) { xcb_generic_reply_t genrep; - int length = 32, - eventlength = 0; /* length after first 32 bytes for GenericEvents */ + int length = 32; + int eventlength = 0; /* length after first 32 bytes for GenericEvents */ void *buf; pending_reply *pend = 0; struct event_list *event; @@ -252,7 +252,7 @@ static void free_reply_list(struct reply_list *head) } } -static int read_block(const int fd, void *buf, const size_t len) +static int read_block(const int fd, void *buf, const ssize_t len) { int done = 0; while(done < len)