mirror of
https://github.com/vale981/spectrwm
synced 2025-03-06 02:01:42 -05:00
Rename a variable.
This commit is contained in:
parent
1fa17c86c2
commit
71bfe4db93
1 changed files with 4 additions and 4 deletions
|
@ -7411,10 +7411,10 @@ clientmessage(xcb_client_message_event_t *e)
|
||||||
void
|
void
|
||||||
check_conn(void)
|
check_conn(void)
|
||||||
{
|
{
|
||||||
int err = xcb_connection_has_error(conn);
|
int errcode = xcb_connection_has_error(conn);
|
||||||
char *s;
|
char *s;
|
||||||
|
|
||||||
switch (err) {
|
switch (errcode) {
|
||||||
case XCB_CONN_ERROR:
|
case XCB_CONN_ERROR:
|
||||||
s = "Socket error, pipe error or other stream error.";
|
s = "Socket error, pipe error or other stream error.";
|
||||||
break;
|
break;
|
||||||
|
@ -7434,8 +7434,8 @@ check_conn(void)
|
||||||
s = "Unknown error.";
|
s = "Unknown error.";
|
||||||
}
|
}
|
||||||
|
|
||||||
if (err)
|
if (errcode)
|
||||||
errx(err, "X CONNECTION ERROR: %s", s);
|
errx(errcode, "X CONNECTION ERROR: %s", s);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void
|
void
|
||||||
|
|
Loading…
Add table
Reference in a new issue