xfree86: glxmodule: 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 7dd8d0627c
commit 03becba76b

View File

@ -48,19 +48,22 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
static MODULESETUPPROTO(glxSetup); static MODULESETUPPROTO(glxSetup);
static XF86ModuleVersionInfo VersRec = { static XF86ModuleVersionInfo VersRec = {
"glx", .modname = "glx",
MODULEVENDORSTRING, .vendor = MODULEVENDORSTRING,
MODINFOSTRING1, ._modinfo1_ = MODINFOSTRING1,
MODINFOSTRING2, ._modinfo2_ = MODINFOSTRING2,
XORG_VERSION_CURRENT, .xf86version = XORG_VERSION_CURRENT,
1, 0, 0, .majorversion = 1,
ABI_CLASS_EXTENSION, .minorversion = 0,
ABI_EXTENSION_VERSION, .patchlevel = 0,
MOD_CLASS_NONE, .abiclass = ABI_CLASS_EXTENSION,
{0, 0, 0, 0} .abiversion = ABI_EXTENSION_VERSION,
}; };
_X_EXPORT XF86ModuleData glxModuleData = { &VersRec, glxSetup, NULL }; _X_EXPORT XF86ModuleData glxModuleData = {
.vers = &VersRec,
.setup = glxSetup
};
static void * static void *
glxSetup(void *module, void *opts, int *errmaj, int *errmin) glxSetup(void *module, void *opts, int *errmaj, int *errmin)