summaryrefslogtreecommitdiff
path: root/xts5/XI/UngrabDeviceButton.m
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2012-01-06 08:35:35 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2012-01-09 11:07:38 +1000
commit2b537d3bad97ff18c2a9f949305655fb5055a8d1 (patch)
tree9157b400acec3e8ac5d422e2921965b49f22de8a /xts5/XI/UngrabDeviceButton.m
parent205a5e1e1fe0bbe51e59d5aa5248c43c589fd38b (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/XI/UngrabDeviceButton.m')
-rw-r--r--xts5/XI/UngrabDeviceButton.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/xts5/XI/UngrabDeviceButton.m b/xts5/XI/UngrabDeviceButton.m
index 16cb9bda..64c214bd 100644
--- a/xts5/XI/UngrabDeviceButton.m
+++ b/xts5/XI/UngrabDeviceButton.m
@@ -199,12 +199,12 @@ static Bool dgrabbed(dev, win)
Display *client1;
/* Create client1, without causing resource registration. */
- if (config.display == (char *) NULL) {
+ if (config.display == NULL) {
delete("config.display not set");
return;
}
client1 = XOpenDisplay(config.display);
- if (client1 == (Display *) NULL) {
+ if (client1 == NULL) {
delete("Couldn't create client1.");
return;
}