Fix "warning: passing argument 1 of `modeIsPresent' from incompatible pointer type".
This commit is contained in:
		
							parent
							
								
									fa1545eeda
								
							
						
					
					
						commit
						95d4ede538
					
				| 
						 | 
					@ -2417,14 +2417,14 @@ configInput(IDevPtr inputp, XF86ConfInputPtr conf_input, MessageType from)
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static Bool
 | 
					static Bool
 | 
				
			||||||
modeIsPresent(char * modename,MonPtr monitorp)
 | 
					modeIsPresent(DisplayModePtr mode, MonPtr monitorp)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    DisplayModePtr knownmodes = monitorp->Modes;
 | 
					    DisplayModePtr knownmodes = monitorp->Modes;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    /* all I can think of is a linear search... */
 | 
					    /* all I can think of is a linear search... */
 | 
				
			||||||
    while(knownmodes != NULL)
 | 
					    while(knownmodes != NULL)
 | 
				
			||||||
    {
 | 
					    {
 | 
				
			||||||
	if(!strcmp(modename,knownmodes->name) &&
 | 
						if(!strcmp(mode->name, knownmodes->name) &&
 | 
				
			||||||
	   !(knownmodes->type & M_T_DEFAULT))
 | 
						   !(knownmodes->type & M_T_DEFAULT))
 | 
				
			||||||
	    return TRUE;
 | 
						    return TRUE;
 | 
				
			||||||
	knownmodes = knownmodes->next;
 | 
						knownmodes = knownmodes->next;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue