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:
Enrico Weigelt, metux IT consult
2026-01-12 10:37:10 +01:00
committed by Enrico Weigelt
parent f4cd09570c
commit f22a0a9f22
5 changed files with 4 additions and 9 deletions

View File

@@ -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

View File

@@ -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

View File

@@ -128,5 +128,6 @@ typedef struct _JoystickDevRec {
} JoystickDevRec;
void jstkCloseDevice(JoystickDevPtr priv);
void jstkInitProperties(DeviceIntPtr pJstk, JoystickDevPtr priv);
#endif

View File

@@ -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;
}

View File

@@ -26,6 +26,6 @@
#include "jstk.h"
Bool jstkInitProperties(DeviceIntPtr pJstk, JoystickDevPtr priv);
void jstkInitProperties(DeviceIntPtr pJstk, JoystickDevPtr priv);
#endif