X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_conn.c;h=02f60bd91c53b5e2c1560e3444f8445d8c3701bc;hb=6438584285de72858f97be891e16a125d13471d8;hp=e7856c355653595273ba88e99db9c4ba390c4ad7;hpb=1ead02e88eb9f37757eeb1cc8c762fc48d6d08ee;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_conn.c b/src/xcb_conn.c index e7856c3..02f60bd 100644 --- a/src/xcb_conn.c +++ b/src/xcb_conn.c @@ -80,7 +80,7 @@ static int write_setup(xcb_connection_t *c, xcb_auth_info_t *auth_info) xcb_setup_request_t out; struct iovec parts[6]; int count = 0; - int endian = 0x01020304; + static const uint32_t endian = 0x01020304; int ret; memset(&out, 0, sizeof(out)); @@ -110,7 +110,7 @@ static int write_setup(xcb_connection_t *c, xcb_auth_info_t *auth_info) parts[count].iov_len = XCB_PAD(out.authorization_protocol_data_len); parts[count++].iov_base = (char *) pad; } - assert(count <= sizeof(parts) / sizeof(*parts)); + assert(count <= (int) (sizeof(parts) / sizeof(*parts))); _xcb_lock_io(c); {