From 3305143854cbb3072b884e82dd768b745bccc5af Mon Sep 17 00:00:00 2001 From: Kim Woelders Date: Sun, 25 Feb 2007 04:13:37 +0000 Subject: [PATCH] Cosmetics. SVN revision: 28469 --- src/ipc.c | 2 +- src/x.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ipc.c b/src/ipc.c index e8281802..81b8d20c 100644 --- a/src/ipc.c +++ b/src/ipc.c @@ -273,7 +273,7 @@ IPC_Screen(const char *params, Client * c __UNUSED__) { ScreenShowInfo(p); } - else if (!p || !strncmp(param, "size", 2)) + else if (!strncmp(param, "size", 2)) { IpcPrintf("Screen %d size %dx%d\n", VRoot.scr, VRoot.w, VRoot.h); } diff --git a/src/x.c b/src/x.c index 9e7ab50f..2766d3a9 100644 --- a/src/x.c +++ b/src/x.c @@ -1638,8 +1638,8 @@ EDisplayClose(void) #else XCloseDisplay(disp); #endif - XSetErrorHandler((XErrorHandler) NULL); - XSetIOErrorHandler((XIOErrorHandler) NULL); + XSetErrorHandler(NULL); + XSetIOErrorHandler(NULL); disp = NULL; } @@ -1653,8 +1653,8 @@ EDisplayDisconnect(void) #else close(ConnectionNumber(disp)); #endif - XSetErrorHandler((XErrorHandler) NULL); - XSetIOErrorHandler((XIOErrorHandler) NULL); + XSetErrorHandler(NULL); + XSetIOErrorHandler(NULL); disp = NULL; }