[PATCH v2 25/29] Use C99 designated initializers in dix registry
Alan Coopersmith
alan.coopersmith at oracle.com
Wed Jul 4 15:37:39 PDT 2012
Signed-off-by: Alan Coopersmith <alan.coopersmith at oracle.com>
---
dix/registry.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/dix/registry.c b/dix/registry.c
index e9c19b0..5bad0fd 100644
--- a/dix/registry.c
+++ b/dix/registry.c
@@ -286,7 +286,7 @@ LookupResourceName(RESTYPE resource)
void
dixResetRegistry(void)
{
- ExtensionEntry extEntry;
+ ExtensionEntry extEntry = { .name = CORE };
/* Free all memory */
while (nmajor--) {
@@ -336,8 +336,6 @@ dixResetRegistry(void)
RegisterResourceName(RT_PASSIVEGRAB, "PASSIVE GRAB");
/* Add the core protocol */
- memset(&extEntry, 0, sizeof(extEntry));
- extEntry.name = CORE;
RegisterExtensionNames(&extEntry);
}
--
1.7.9.2
More information about the xorg-devel
mailing list