(!1788) xfree86: inputtest: use explicit field initializers for XF86ModuleData

Even though the order of these fields shouldn't change anytime
soon, it's still better programming style to name'em explicitly.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-02-12 11:24:02 +01:00
parent 74ba2b1af5
commit 44d38c9e8e

View File

@ -1107,18 +1107,17 @@ InputDriverRec driver = {
}; };
static XF86ModuleVersionInfo version_info = { static XF86ModuleVersionInfo version_info = {
"inputtest", .modname = "inputtest",
MODULEVENDORSTRING, .vendor = MODULEVENDORSTRING,
MODINFOSTRING1, ._modinfo1_ = MODINFOSTRING1,
MODINFOSTRING2, ._modinfo2_ = MODINFOSTRING2,
XORG_VERSION_CURRENT, .xf86version = XORG_VERSION_CURRENT,
XORG_VERSION_MAJOR, .majorversion = XORG_VERSION_MAJOR,
XORG_VERSION_MINOR, .minorversion = XORG_VERSION_MINOR,
XORG_VERSION_PATCH, .patchlevel = XORG_VERSION_PATCH,
ABI_CLASS_XINPUT, .abiclass = ABI_CLASS_XINPUT,
ABI_XINPUT_VERSION, .abiversion = ABI_XINPUT_VERSION,
MOD_CLASS_XINPUT, .moduleclass = MOD_CLASS_XINPUT,
{0, 0, 0, 0}
}; };
static void* static void*
@ -1131,5 +1130,4 @@ setup_proc(void *module, void *options, int *errmaj, int *errmin)
_X_EXPORT XF86ModuleData inputtestModuleData = { _X_EXPORT XF86ModuleData inputtestModuleData = {
.vers = &version_info, .vers = &version_info,
.setup = &setup_proc, .setup = &setup_proc,
.teardown = NULL
}; };