mirror of
https://github.com/X11Libre/xf86-input-joystick.git
synced 2026-03-24 01:34:06 +00:00
make return value of jstkInitProperties() void
Nobody's looking at it, and it's always TRUE, so not needed at all. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
committed by
Enrico Weigelt
parent
f4cd09570c
commit
f22a0a9f22
@@ -37,7 +37,7 @@ joystick_drv_la_SOURCES = jstk.c jstk.h \
|
||||
jstk_axis.c jstk_axis.h \
|
||||
jstk_key.c jstk_key.h \
|
||||
jstk_options.c jstk_options.h \
|
||||
jstk_properties.c jstk_properties.h
|
||||
jstk_properties.c
|
||||
|
||||
BSD_SRCS = backend_bsd.c backend_bsd.h
|
||||
LINUX_SRCS = backend_joystick.c backend_joystick.h
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#include "jstk_axis.h"
|
||||
#include "jstk_key.h"
|
||||
#include "jstk_options.h"
|
||||
#include "jstk_properties.h"
|
||||
#include <xserver-properties.h>
|
||||
|
||||
#ifdef LINUX_BACKEND
|
||||
|
||||
@@ -128,5 +128,6 @@ typedef struct _JoystickDevRec {
|
||||
} JoystickDevRec;
|
||||
|
||||
void jstkCloseDevice(JoystickDevPtr priv);
|
||||
void jstkInitProperties(DeviceIntPtr pJstk, JoystickDevPtr priv);
|
||||
|
||||
#endif
|
||||
|
||||
@@ -32,7 +32,6 @@
|
||||
#include <exevents.h>
|
||||
|
||||
#include "jstk.h"
|
||||
#include "jstk_properties.h"
|
||||
#include "joystick-properties.h" /* definitions of properties */
|
||||
|
||||
|
||||
@@ -272,8 +271,7 @@ jstkSetProperty(DeviceIntPtr pJstk, Atom atom, XIPropertyValuePtr val,
|
||||
return Success;
|
||||
}
|
||||
|
||||
Bool
|
||||
jstkInitProperties(DeviceIntPtr pJstk, JoystickDevPtr priv)
|
||||
void jstkInitProperties(DeviceIntPtr pJstk, JoystickDevPtr priv)
|
||||
{
|
||||
INT32 axes_values32[MAXAXES];
|
||||
INT8 axes_values8[MAXAXES*MAXKEYSPERBUTTON];
|
||||
@@ -293,7 +291,6 @@ jstkInitProperties(DeviceIntPtr pJstk, JoystickDevPtr priv)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
/* Debug Level */
|
||||
prop_debuglevel = MakeAtom(JSTK_PROP_DEBUGLEVEL, strlen(JSTK_PROP_DEBUGLEVEL), TRUE);
|
||||
@@ -447,6 +444,4 @@ jstkInitProperties(DeviceIntPtr pJstk, JoystickDevPtr priv)
|
||||
button_values8,
|
||||
FALSE);
|
||||
XISetDevicePropertyDeletable(pJstk, prop_button_keys, FALSE);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
@@ -26,6 +26,6 @@
|
||||
|
||||
#include "jstk.h"
|
||||
|
||||
Bool jstkInitProperties(DeviceIntPtr pJstk, JoystickDevPtr priv);
|
||||
void jstkInitProperties(DeviceIntPtr pJstk, JoystickDevPtr priv);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user