From 2b537d3bad97ff18c2a9f949305655fb5055a8d1 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 6 Jan 2012 08:35:35 +1000 Subject: xts5: remove (type *)NULL casts Coccinelle patch: @@ type T; @@ - (T *)NULL + NULL with a bit of manual massaging to skip botched hunks Signed-off-by: Peter Hutterer --- xts5/XIproto/GetDeviceDontPropagateList.m | 2 +- xts5/XIproto/GetSelectedExtensionEvents.m | 2 +- xts5/XIproto/Miscellaneous.m | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'xts5/XIproto') diff --git a/xts5/XIproto/GetDeviceDontPropagateList.m b/xts5/XIproto/GetDeviceDontPropagateList.m index d412e452..33098796 100644 --- a/xts5/XIproto/GetDeviceDontPropagateList.m +++ b/xts5/XIproto/GetDeviceDontPropagateList.m @@ -143,7 +143,7 @@ Display *client1, *opendisplay(); return; } client1 = opendisplay(); - if (client1 == (Display *) NULL) { + if (client1 == NULL) { delete("Can not open display"); return; } diff --git a/xts5/XIproto/GetSelectedExtensionEvents.m b/xts5/XIproto/GetSelectedExtensionEvents.m index 62737ba9..7a441f7b 100644 --- a/xts5/XIproto/GetSelectedExtensionEvents.m +++ b/xts5/XIproto/GetSelectedExtensionEvents.m @@ -141,7 +141,7 @@ Window w; } client1 = opendisplay(); - if (client1 == (Display *) NULL) { + if (client1 == NULL) { delete("Can not open display"); return; } diff --git a/xts5/XIproto/Miscellaneous.m b/xts5/XIproto/Miscellaneous.m index e3bf53f0..be622597 100644 --- a/xts5/XIproto/Miscellaneous.m +++ b/xts5/XIproto/Miscellaneous.m @@ -137,7 +137,7 @@ XDevice *dev; Create_Default_Window(CLIENT); dpy2 = opendisplay(); - if (dpy2 == (Display *) NULL) { + if (dpy2 == NULL) { delete("Can not open display"); return; } -- cgit v1.2.3