diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2012-01-06 08:35:35 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2012-01-09 11:07:38 +1000 |
commit | 2b537d3bad97ff18c2a9f949305655fb5055a8d1 (patch) | |
tree | 9157b400acec3e8ac5d422e2921965b49f22de8a /xts5/XIproto | |
parent | 205a5e1e1fe0bbe51e59d5aa5248c43c589fd38b (diff) |
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 <peter.hutterer@who-t.net>
Diffstat (limited to 'xts5/XIproto')
-rw-r--r-- | xts5/XIproto/GetDeviceDontPropagateList.m | 2 | ||||
-rw-r--r-- | xts5/XIproto/GetSelectedExtensionEvents.m | 2 | ||||
-rw-r--r-- | xts5/XIproto/Miscellaneous.m | 2 |
3 files changed, 3 insertions, 3 deletions
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; } |