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;
}
}
-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)