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 | 1622dd8ab24d2fe7b9908110eb237774d4e03568 (patch) | |
tree | 09174e70226d4a52ec36fb89747ab58052ca46c3 | |
parent | 9805cedf7b0f76d3b75f94e956c4cc2dcf0d8b64 (diff) |
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>
-rw-r--r-- | dix/registry.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/dix/registry.c b/dix/registry.c index e9c19b092..5bad0fdd4 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); } |