glamor: 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>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1788>
This commit is contained in:
Enrico Weigelt, metux IT consult 2025-02-12 11:24:02 +01:00 committed by Marge Bot
parent 1848027892
commit c46e645bad

View File

@ -35,16 +35,18 @@
#include "glamor.h"
static XF86ModuleVersionInfo VersRec = {
GLAMOR_EGL_MODULE_NAME,
MODULEVENDORSTRING,
MODINFOSTRING1,
MODINFOSTRING2,
XORG_VERSION_CURRENT,
1, 0, 1, /* version */
ABI_CLASS_ANSIC, /* Only need the ansic layer */
ABI_ANSIC_VERSION,
MOD_CLASS_NONE,
{0, 0, 0, 0} /* signature, to be patched into the file by a tool */
.modname = GLAMOR_EGL_MODULE_NAME,
.vendor = MODULEVENDORSTRING,
._modinfo1_ = MODINFOSTRING1,
._modinfo2_ = MODINFOSTRING2,
.xf86version = XORG_VERSION_CURRENT,
.majorversion = 1,
.minorversion = 0,
.patchlevel = 1,
.abiclass = ABI_CLASS_ANSIC,
.abiversion = ABI_ANSIC_VERSION,
};
_X_EXPORT XF86ModuleData glamoreglModuleData = { &VersRec, NULL, NULL };
_X_EXPORT XF86ModuleData glamoreglModuleData = {
.vers = &VersRec
};