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:
parent
9805cedf7b
commit
1622dd8ab2
|
@ -286,7 +286,7 @@ LookupResourceName(RESTYPE resource)
|
||||||
void
|
void
|
||||||
dixResetRegistry(void)
|
dixResetRegistry(void)
|
||||||
{
|
{
|
||||||
ExtensionEntry extEntry;
|
ExtensionEntry extEntry = { .name = CORE };
|
||||||
|
|
||||||
/* Free all memory */
|
/* Free all memory */
|
||||||
while (nmajor--) {
|
while (nmajor--) {
|
||||||
|
@ -336,8 +336,6 @@ dixResetRegistry(void)
|
||||||
RegisterResourceName(RT_PASSIVEGRAB, "PASSIVE GRAB");
|
RegisterResourceName(RT_PASSIVEGRAB, "PASSIVE GRAB");
|
||||||
|
|
||||||
/* Add the core protocol */
|
/* Add the core protocol */
|
||||||
memset(&extEntry, 0, sizeof(extEntry));
|
|
||||||
extEntry.name = CORE;
|
|
||||||
RegisterExtensionNames(&extEntry);
|
RegisterExtensionNames(&extEntry);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue