diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2012-07-09 19:12:44 -0700 |
---|---|---|
committer | Keith Packard <keithp@keithp.com> | 2012-07-09 22:52:30 -0700 |
commit | 9805cedf7b0f76d3b75f94e956c4cc2dcf0d8b64 (patch) | |
tree | 466df72bc6e3fdad5a0a682a480af6905bd02780 /Xext/security.c | |
parent | 0af79b124e1317c36d1613d28755c5a8ce612e2a (diff) |
Use C99 designated initializers in extension Events
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Tested-by: Daniel Stone <daniel@fooishbar.org>
Diffstat (limited to 'Xext/security.c')
-rw-r--r-- | Xext/security.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Xext/security.c b/Xext/security.c index 4144d859d..50041deb8 100644 --- a/Xext/security.c +++ b/Xext/security.c @@ -192,10 +192,10 @@ SecurityDeleteAuthorization(pointer value, XID id) while ((pEventClient = pAuth->eventClients)) { /* send revocation event event */ - xSecurityAuthorizationRevokedEvent are; - - are.type = SecurityEventBase + XSecurityAuthorizationRevoked; - are.authId = pAuth->id; + xSecurityAuthorizationRevokedEvent are = { + .type = SecurityEventBase + XSecurityAuthorizationRevoked, + .authId = pAuth->id + }; WriteEventsToClient(rClient(pEventClient), 1, (xEvent *) &are); FreeResource(pEventClient->resource, RT_NONE); } |