From ceffece78b828c30a144affa437cd5ae2021a342 Mon Sep 17 00:00:00 2001 From: Eamon Walsh Date: Fri, 20 Jun 2008 23:49:32 -0400 Subject: [PATCH] Fix "warning: passing argument 1 of `modeIsPresent' from incompatible pointer type". (cherry picked from commit 95d4ede538fbb68049ba3efa0acb0e9712e5cb01) --- hw/xfree86/common/xf86Config.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c index 8e30c84c9..fde3a9c74 100644 --- a/hw/xfree86/common/xf86Config.c +++ b/hw/xfree86/common/xf86Config.c @@ -2418,14 +2418,14 @@ configInput(IDevPtr inputp, XF86ConfInputPtr conf_input, MessageType from) } static Bool -modeIsPresent(char * modename,MonPtr monitorp) +modeIsPresent(DisplayModePtr mode, MonPtr monitorp) { DisplayModePtr knownmodes = monitorp->Modes; /* all I can think of is a linear search... */ while(knownmodes != NULL) { - if(!strcmp(modename,knownmodes->name) && + if(!strcmp(mode->name, knownmodes->name) && !(knownmodes->type & M_T_DEFAULT)) return TRUE; knownmodes = knownmodes->next;