summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2015-09-03 17:42:20 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2015-09-03 17:42:20 +1000
commit6abd341279ea54e7c0ce56b1a2ad310a496be2b5 (patch)
tree08afcfc59e6fbb399bd9d3f557ae35d45d9e82b3
parent19b42f242dddef7d6381b74b13930d6dd2734898 (diff)
Fix invalid pointer passed to the properties
Takes a void*, not a void** Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/xf86libinput.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/xf86libinput.c b/src/xf86libinput.c
index 0f48ea0..c1b13ff 100644
--- a/src/xf86libinput.c
+++ b/src/xf86libinput.c
@@ -2480,7 +2480,7 @@ LibinputInitScrollMethodsProperty(DeviceIntPtr dev,
LIBINPUT_PROP_SCROLL_METHODS_AVAILABLE,
XA_INTEGER, 8,
ARRAY_SIZE(methods),
- &methods);
+ methods);
if (!prop_scroll_methods_available)
return;
@@ -2505,7 +2505,7 @@ LibinputInitScrollMethodsProperty(DeviceIntPtr dev,
LIBINPUT_PROP_SCROLL_METHOD_ENABLED,
XA_INTEGER, 8,
ARRAY_SIZE(methods),
- &methods);
+ methods);
if (!prop_scroll_method_enabled)
return;
@@ -2521,7 +2521,7 @@ LibinputInitScrollMethodsProperty(DeviceIntPtr dev,
LIBINPUT_PROP_SCROLL_METHOD_ENABLED_DEFAULT,
XA_INTEGER, 8,
ARRAY_SIZE(methods),
- &methods);
+ methods);
/* Scroll button */
if (libinput_device_config_scroll_get_methods(device) &
LIBINPUT_CONFIG_SCROLL_ON_BUTTON_DOWN) {
@@ -2564,7 +2564,7 @@ LibinputInitClickMethodsProperty(DeviceIntPtr dev,
LIBINPUT_PROP_CLICK_METHODS_AVAILABLE,
XA_INTEGER, 8,
ARRAY_SIZE(methods),
- &methods);
+ methods);
if (!prop_click_methods_available)
return;
@@ -2586,7 +2586,7 @@ LibinputInitClickMethodsProperty(DeviceIntPtr dev,
LIBINPUT_PROP_CLICK_METHOD_ENABLED,
XA_INTEGER, 8,
ARRAY_SIZE(methods),
- &methods);
+ methods);
if (!prop_click_method_enabled)
return;
@@ -2609,7 +2609,7 @@ LibinputInitClickMethodsProperty(DeviceIntPtr dev,
LIBINPUT_PROP_CLICK_METHOD_ENABLED_DEFAULT,
XA_INTEGER, 8,
ARRAY_SIZE(methods),
- &methods);
+ methods);
}
static void