From 0af79b124e1317c36d1613d28755c5a8ce612e2a Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Mon, 9 Jul 2012 19:12:44 -0700 Subject: Use C99 designated initializers in dix Events Signed-off-by: Alan Coopersmith Reviewed-by: Keith Packard Tested-by: Daniel Stone --- mi/miexpose.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'mi') diff --git a/mi/miexpose.c b/mi/miexpose.c index 2dc465d9c..8b7c93fb8 100644 --- a/mi/miexpose.c +++ b/mi/miexpose.c @@ -349,13 +349,12 @@ miSendGraphicsExpose(ClientPtr client, RegionPtr pRgn, XID drawable, free(pEvent); } else { - xEvent event; - - memset(&event, 0, sizeof(xEvent)); + xEvent event = { + .u.noExposure.drawable = drawable, + .u.noExposure.majorEvent = major, + .u.noExposure.minorEvent = minor + }; event.u.u.type = NoExpose; - event.u.noExposure.drawable = drawable; - event.u.noExposure.majorEvent = major; - event.u.noExposure.minorEvent = minor; WriteEventsToClient(client, 1, &event); } } -- cgit v1.2.3