const xcb_setup_t *xcb_get_setup(xcb_connection_t *c)
{
- if(c->has_error)
+ if(is_static_error_conn(c))
return 0;
/* doesn't need locking because it's never written to. */
return c->setup;
int xcb_get_file_descriptor(xcb_connection_t *c)
{
- if(c->has_error)
+ if(is_static_error_conn(c))
return -1;
/* doesn't need locking because it's never written to. */
return c->fd;