From fd0b27a538cd391b61fc1595ffbbb1e78ef19a1a Mon Sep 17 00:00:00 2001 From: matthieu Date: Sun, 13 Sep 2020 10:26:31 +0000 Subject: [PATCH] Use C99 designated structure initializers. No expected code change. --- driver/xf86-input-ws/src/ws.c | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/driver/xf86-input-ws/src/ws.c b/driver/xf86-input-ws/src/ws.c index 77abeb60d..894704877 100644 --- a/driver/xf86-input-ws/src/ws.c +++ b/driver/xf86-input-ws/src/ws.c @@ -13,7 +13,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $OpenBSD: ws.c,v 1.64 2019/03/24 17:59:19 bru Exp $ */ +/* $OpenBSD: ws.c,v 1.65 2020/09/13 10:26:31 matthieu Exp $ */ #ifdef HAVE_CONFIG_H #include "config.h" @@ -83,19 +83,20 @@ static XF86ModuleVersionInfo VersionRec = { }; _X_EXPORT XF86ModuleData wsModuleData = { - &VersionRec, - SetupProc, - TearDownProc + .vers = &VersionRec, + .setup = SetupProc, + .teardown = TearDownProc }; _X_EXPORT InputDriverRec WS = { - 1, - "ws", - NULL, - wsPreInit, - wsUnInit, - NULL, - 0 + .driverVersion = 1, + .driverName = "ws", + .Identify = NULL, + .PreInit = wsPreInit, + .UnInit = wsUnInit, + .module = NULL, + .default_options = NULL, + .capabilities = 0 }; static pointer