Skip to content

Commit 386e4d7

Browse files
committed
Merge remote-tracking branch 'alanc/master'
2 parents 014a5c8 + 9ff2e83 commit 386e4d7

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

hw/dmx/dmxinit.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -740,10 +740,10 @@ InitOutput(ScreenInfo * pScreenInfo, int argc, char *argv[])
740740
/* Check if GLX extension exists on all back-end servers */
741741
for (i = 0; i < dmxNumScreens; i++)
742742
glxSupported &= (dmxScreens[i].glxMajorOpcode > 0);
743-
#endif
744743

745744
if (serverGeneration == 1)
746745
dmxAddExtensions(glxSupported);
746+
#endif
747747

748748
/* Tell dix layer about the backend displays */
749749
for (i = 0; i < dmxNumScreens; i++) {

include/dix-config.h.in

+3
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,9 @@
429429
/* Define to 1 if typeof works with your compiler. */
430430
#undef HAVE_TYPEOF
431431

432+
/* Define to __typeof__ if your compiler spells it that way. */
433+
#undef typeof
434+
432435
/* The compiler supported TLS storage class, prefering initial-exec if tls_model is supported */
433436
#undef TLS
434437

mi/miinitext.c

+6-3
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,12 @@ EnableDisableExtension(const char *name, Bool enable)
212212
void
213213
EnableDisableExtensionError(const char *name, Bool enable)
214214
{
215-
ExtensionToggle *ext = &ExtensionToggleList[0];
215+
ExtensionToggle *ext;
216+
int i;
216217
Bool found = FALSE;
217218

218-
for (ext = &ExtensionToggleList[0]; ext->name != NULL; ext++) {
219+
for (i = 0; i < ARRAY_SIZE(ExtensionToggleList); i++) {
220+
ext = &ExtensionToggleList[i];
219221
if ((strcmp(name, ext->name) == 0) && (ext->disablePtr == NULL)) {
220222
ErrorF("[mi] Extension \"%s\" can not be disabled\n", name);
221223
found = TRUE;
@@ -226,7 +228,8 @@ EnableDisableExtensionError(const char *name, Bool enable)
226228
ErrorF("[mi] Extension \"%s\" is not recognized\n", name);
227229
ErrorF("[mi] Only the following extensions can be run-time %s:\n",
228230
enable ? "enabled" : "disabled");
229-
for (ext = &ExtensionToggleList[0]; ext->name != NULL; ext++) {
231+
for (i = 0; i < ARRAY_SIZE(ExtensionToggleList); i++) {
232+
ext = &ExtensionToggleList[i];
230233
if (ext->disablePtr != NULL) {
231234
ErrorF("[mi] %s\n", ext->name);
232235
}

0 commit comments

Comments
 (0)