Commit 52a45828 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

XlibInt.c: simplify NX code insertion

parent 17ab45b9
......@@ -530,7 +530,6 @@ _XWaitForWritable(
#ifdef NX_TRANS_SOCKET
{
_XIOError(dpy);
return;
}
#else /* NX_TRANS_SOCKET */
......@@ -1186,7 +1185,6 @@ _XEventsQueued(
#ifdef NX_TRANS_SOCKET
{
_XIOError(dpy);
return (dpy->qlen);
}
#else
......@@ -1229,7 +1227,6 @@ _XEventsQueued(
#ifdef NX_TRANS_SOCKET
{
_XIOError(dpy);
return (dpy->qlen);
}
#else
......@@ -1591,12 +1588,10 @@ int _XRead(
else if (bytes_read == 0) {
/* Read failed because of end of file! */
ESET(EPIPE);
#ifdef NX_TRANS_SOCKET
_XIOError(dpy);
return -1;
#else
_XIOError(dpy);
#ifdef NX_TRANS_SOCKET
return -1;
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment