Use C99 designated initializers in dix registry

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Keith Packard <keithp@keithp.com>
Tested-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
Alan Coopersmith 2012-07-09 19:12:44 -07:00 committed by Keith Packard
parent 9805cedf7b
commit 1622dd8ab2

View File

@ -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);
}