diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-10 17:57:18 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2024-01-10 18:13:30 -0800 |
commit | 2548cd71e8f466097c2d6fbebd5bb1ba4de6cd25 (patch) | |
tree | 2d1b579ac7d1e884328b40419cd2815811c398a1 /src | |
parent | e1e06b461d7e7b9896b2bd760ccd9fa4c5d72526 (diff) |
Use C99 named initializers for XF86ModReqInfo in SavagePreInit()
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/savage_driver.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/savage_driver.c b/src/savage_driver.c index 0b7b02a..762226d 100644 --- a/src/savage_driver.c +++ b/src/savage_driver.c @@ -2164,11 +2164,11 @@ static Bool SavagePreInit(ScrnInfoPtr pScrn, int flags) if (psav->useEXA) { const char *modName = "exa"; - XF86ModReqInfo req; + XF86ModReqInfo req = { + .majorversion = 2, + .minorversion = 0 + }; int errmaj, errmin; - memset(&req, 0, sizeof(req)); - req.majorversion = 2; - req.minorversion = 0; if( !LoadSubModule(pScrn->module, modName, NULL, NULL, NULL, &req, &errmaj, &errmin) ) { |