changeset 65:160fad18b8be

XError.c: clang-format
author ng0@n0.is
date Fri, 03 May 2019 21:20:09 +0000
parents fe5752c3c6cd
children f8739845bfb0
files XError.c
diffstat 1 files changed, 15 insertions(+), 16 deletions(-) [+]
line wrap: on
line diff
--- a/XError.c	Fri May 03 21:19:48 2019 +0000
+++ b/XError.c	Fri May 03 21:20:09 2019 +0000
@@ -1,5 +1,6 @@
 #ifndef lint
-static char *rcsid_XError_c = "$XConsortium: XError.c,v 1.7 88/09/22 10:53:35 jim Exp $";
+static char *rcsid_XError_c =
+  "$XConsortium: XError.c,v 1.7 88/09/22 10:53:35 jim Exp $";
 #endif
 
 /*
@@ -41,7 +42,6 @@
  * SOFTWARE.
  */
 
- 
 
 /*
  * MODIFICATION HISTORY
@@ -55,22 +55,21 @@
 
 #include "uwm.h"
 
-int XError(dpy, rep)
-Display *dpy;
+int XError (dpy, rep) Display *dpy;
 XErrorEvent *rep;
 {
 #ifdef DEBUG
-	char buffer[BUFSIZ];
-	XGetErrorText(dpy, rep->error_code, buffer, BUFSIZ);
-	fprintf(stderr, "uwm: X error occurred during a uwm operation.\n");
-	fprintf(stderr, "     Description: '%s'\n", buffer);
-	fprintf(stderr, "     Request code: %d\n", rep->request_code);
-	fprintf(stderr, "     Request function: %d\n", rep->func);
-	fprintf(stderr, "     Request window 0x%x\n", rep->window);
-	fprintf(stderr, "     Error Serial #%d\n", rep->serial);
-	fprintf(stderr, "     Current serial #%d\n", dpy->request);
+        char buffer[BUFSIZ];
+        XGetErrorText (dpy, rep->error_code, buffer, BUFSIZ);
+        fprintf (stderr, "uwm: X error occurred during a uwm operation.\n");
+        fprintf (stderr, "     Description: '%s'\n", buffer);
+        fprintf (stderr, "     Request code: %d\n", rep->request_code);
+        fprintf (stderr, "     Request function: %d\n", rep->func);
+        fprintf (stderr, "     Request window 0x%x\n", rep->window);
+        fprintf (stderr, "     Error Serial #%d\n", rep->serial);
+        fprintf (stderr, "     Current serial #%d\n", dpy->request);
 #endif
-	x_error_occurred = TRUE;
-	last_error_event = *rep;
-	return (0);
+        x_error_occurred = TRUE;
+        last_error_event = *rep;
+        return (0);
 }