X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;ds=sidebyside;f=spectrwm.c;h=6242ac65a4273338050f27e902d86503097a83a7;hb=71bfe4db93f61fd1d70f449b1eedc84dbca2cc17;hp=3b240f1052965fbd9531e37a1eb69ee0c1726f45;hpb=1fa17c86c27db076578a215f9393663c083644cd;p=spectrwm.git diff --git a/spectrwm.c b/spectrwm.c index 3b240f1..6242ac6 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -7411,10 +7411,10 @@ clientmessage(xcb_client_message_event_t *e) void check_conn(void) { - int err = xcb_connection_has_error(conn); + int errcode = xcb_connection_has_error(conn); char *s; - switch (err) { + switch (errcode) { case XCB_CONN_ERROR: s = "Socket error, pipe error or other stream error."; break; @@ -7434,8 +7434,8 @@ check_conn(void) s = "Unknown error."; } - if (err) - errx(err, "X CONNECTION ERROR: %s", s); + if (errcode) + errx(errcode, "X CONNECTION ERROR: %s", s); } #else void