From f0590decb61c4b8c8e380bd0e089dc453d4eb36e Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 12 Feb 2025 11:24:02 +0100 Subject: [PATCH] xfree86: sfbmodule: 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 Part-of: --- hw/xfree86/shadowfb/sfbmodule.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hw/xfree86/shadowfb/sfbmodule.c b/hw/xfree86/shadowfb/sfbmodule.c index c20efc071..62c183f60 100644 --- a/hw/xfree86/shadowfb/sfbmodule.c +++ b/hw/xfree86/shadowfb/sfbmodule.c @@ -17,4 +17,6 @@ static XF86ModuleVersionInfo VersRec = { {0, 0, 0, 0} /* signature, to be patched into the file by a tool */ }; -_X_EXPORT XF86ModuleData shadowfbModuleData = { &VersRec, NULL, NULL }; +_X_EXPORT XF86ModuleData shadowfbModuleData = { + .vers = &VersRec +};