X-Git-Url: http://git.demorecorder.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fxcb_conn.c;h=00c458fc52808198e94ebe1f7a2e492aedafe183;hb=4ffa6f83b92763eb901c7ddb7c20775e24d507ca;hp=46390e1dabb5ef40c6e7180561b85d67b97ce7bd;hpb=d7eb0bdf3b5b11ee9f40ee5e73df8fc0bdfa59f3;p=free-sw%2Fxcb%2Flibxcb diff --git a/src/xcb_conn.c b/src/xcb_conn.c index 46390e1..00c458f 100644 --- a/src/xcb_conn.c +++ b/src/xcb_conn.c @@ -374,6 +374,9 @@ void _xcb_conn_shutdown(xcb_connection_t *c, int err) /* Return connection error state. * To make thread-safe, I need a seperate static * variable for every possible error. + * has_error is the first field in xcb_connection_t, so just + * return a casted int here; checking has_error (and only + * has_error) will be safe. */ xcb_connection_t *_xcb_conn_ret_error(int err) {