|
|
4bb429 |
From 6d2cde9633b5ee020cb60caea1cf61e090b86dd2 Mon Sep 17 00:00:00 2001
|
|
|
4bb429 |
From: Adam Jackson <ajax@redhat.com>
|
|
|
4bb429 |
Date: Fri, 24 Mar 2017 11:07:35 -0400
|
|
|
4bb429 |
Subject: [PATCH 1/2] _XDefaultIOError: Reformat to be less ugly
|
|
|
4bb429 |
|
|
|
4bb429 |
Signed-off-by: Adam Jackson <ajax@redhat.com>
|
|
|
4bb429 |
Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
|
|
|
4bb429 |
---
|
|
|
4bb429 |
src/XlibInt.c | 26 +++++++++++++-------------
|
|
|
4bb429 |
1 file changed, 13 insertions(+), 13 deletions(-)
|
|
|
4bb429 |
|
|
|
4bb429 |
diff --git a/src/XlibInt.c b/src/XlibInt.c
|
|
|
4bb429 |
index 73afe024..903e47f3 100644
|
|
|
4bb429 |
--- a/src/XlibInt.c
|
|
|
4bb429 |
+++ b/src/XlibInt.c
|
|
|
4bb429 |
@@ -1243,24 +1243,24 @@ _X_NORETURN int _XDefaultIOError(
|
|
|
4bb429 |
Display *dpy)
|
|
|
4bb429 |
{
|
|
|
4bb429 |
if (ECHECK(EPIPE)) {
|
|
|
4bb429 |
- (void) fprintf (stderr,
|
|
|
4bb429 |
- "X connection to %s broken (explicit kill or server shutdown).\r\n",
|
|
|
4bb429 |
- DisplayString (dpy));
|
|
|
4bb429 |
+ fprintf (stderr,
|
|
|
4bb429 |
+ "X connection to %s broken (explicit kill or server shutdown).\r\n",
|
|
|
4bb429 |
+ DisplayString (dpy));
|
|
|
4bb429 |
} else {
|
|
|
4bb429 |
- (void) fprintf (stderr,
|
|
|
4bb429 |
- "XIO: fatal IO error %d (%s) on X server \"%s\"\r\n",
|
|
|
4bb429 |
+ fprintf (stderr,
|
|
|
4bb429 |
+ "XIO: fatal IO error %d (%s) on X server \"%s\"\r\n",
|
|
|
4bb429 |
#ifdef WIN32
|
|
|
4bb429 |
- WSAGetLastError(), strerror(WSAGetLastError()),
|
|
|
4bb429 |
+ WSAGetLastError(), strerror(WSAGetLastError()),
|
|
|
4bb429 |
#else
|
|
|
4bb429 |
- errno, strerror (errno),
|
|
|
4bb429 |
+ errno, strerror (errno),
|
|
|
4bb429 |
#endif
|
|
|
4bb429 |
- DisplayString (dpy));
|
|
|
4bb429 |
- (void) fprintf (stderr,
|
|
|
4bb429 |
- " after %lu requests (%lu known processed) with %d events remaining.\r\n",
|
|
|
4bb429 |
- NextRequest(dpy) - 1, LastKnownRequestProcessed(dpy),
|
|
|
4bb429 |
- QLength(dpy));
|
|
|
4bb429 |
+ DisplayString (dpy));
|
|
|
4bb429 |
+ fprintf (stderr,
|
|
|
4bb429 |
+ " after %lu requests (%lu known processed) with %d events remaining.\r\n",
|
|
|
4bb429 |
+ NextRequest(dpy) - 1, LastKnownRequestProcessed(dpy),
|
|
|
4bb429 |
+ QLength(dpy));
|
|
|
4bb429 |
+ }
|
|
|
4bb429 |
|
|
|
4bb429 |
- }
|
|
|
4bb429 |
exit(1);
|
|
|
4bb429 |
/*NOTREACHED*/
|
|
|
4bb429 |
}
|
|
|
4bb429 |
--
|
|
|
4bb429 |
2.21.0
|
|
|
4bb429 |
|