Fix "warning: passing argument 1 of `modeIsPresent' from incompatible pointer type".
(cherry picked from commit 95d4ede538
)
This commit is contained in:
parent
7f542ab37f
commit
ceffece78b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user