Fix "warning: passing argument 1 of `modeIsPresent' from incompatible pointer type".

(cherry picked from commit 95d4ede538)
This commit is contained in:
Eamon Walsh 2008-06-20 23:49:32 -04:00 committed by Adam Jackson
parent 7f542ab37f
commit ceffece78b

View File

@ -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;