summaryrefslogtreecommitdiff
path: root/src/XGetMMap.c
diff options
context:
space:
mode:
authorMichal Srb <msrb@suse.com>2014-11-01 20:00:53 +0200
committerPeter Hutterer <peter.hutterer@who-t.net>2014-11-03 15:28:35 +1000
commitdc1f8c6ec1ba8135afa185c8e8360c1ed90bf96c (patch)
tree28adc2871bffd7eaa43f1605dc756891863f145b /src/XGetMMap.c
parent83261c52a17543437882e2863b7f06a92c9039f8 (diff)
Do not return NoSuchExtension casted to pointer as an error.
Several functions were returning NoSuchExtension casted to a pointer in case of an error. Often in parallel with returning NULL in case of another error. It is undocumented and certainly wrong. Signed-off-by: Michal Srb <msrb@suse.com> Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'src/XGetMMap.c')
-rw-r--r--src/XGetMMap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XGetMMap.c b/src/XGetMMap.c
index ce10c2d..246698c 100644
--- a/src/XGetMMap.c
+++ b/src/XGetMMap.c
@@ -73,7 +73,7 @@ XGetDeviceModifierMapping(
LockDisplay(dpy);
if (_XiCheckExtInit(dpy, XInput_Initial_Release, info) == -1)
- return ((XModifierKeymap *) NoSuchExtension);
+ return NULL;
GetReq(GetDeviceModifierMapping, req);
req->reqType = info->codes->major_opcode;