summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthieu Herrb <matthieu@cvs.openbsd.org>2020-09-13 10:26:32 +0000
committerMatthieu Herrb <matthieu@cvs.openbsd.org>2020-09-13 10:26:32 +0000
commite9439413fb209c9dd6fd5d90aa0a51ef0e675d75 (patch)
treee19c089f8519acf405b207c4f147799bc19764dd
parent7891ee205d131208ebfe7b79f834f4abfc74acdb (diff)
Use C99 designated structure initializers.
No expected code change.
-rw-r--r--driver/xf86-input-ws/src/ws.c23
1 files 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