diff options
Diffstat (limited to 'hw/xfree86/dixmods/extmod/modinit.c')
-rw-r--r-- | hw/xfree86/dixmods/extmod/modinit.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/hw/xfree86/dixmods/extmod/modinit.c b/hw/xfree86/dixmods/extmod/modinit.c index afee27a59..009852c33 100644 --- a/hw/xfree86/dixmods/extmod/modinit.c +++ b/hw/xfree86/dixmods/extmod/modinit.c @@ -101,12 +101,6 @@ static ExtensionModule extensionModules[] = { NULL, NULL}, #endif - { /* DON'T delete this entry ! */ - NULL, - NULL, - NULL, - NULL, - NULL} }; static XF86ModuleVersionInfo VersRec = { @@ -134,7 +128,7 @@ extmodSetup(pointer module, pointer opts, int *errmaj, int *errmin) /* XXX the option stuff here is largely a sample/test case */ - for (i = 0; extensionModules[i].name != NULL; i++) { + for (i = 0; i < ARRAY_SIZE(extensionModules); i++) { #ifdef XSELINUX if (!strcmp(SELINUX_EXTENSION_NAME, extensionModules[i].name)) { pointer o; |