kdrive: Fix a few easy cast warnings.
Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Julien Cristau <jcristau@debian.org>
This commit is contained in:
		
							parent
							
								
									a9c48a07ee
								
							
						
					
					
						commit
						56c405d46a
					
				| 
						 | 
				
			
			@ -186,7 +186,7 @@ EvdevPtrRead(int evdevPort, void *closure)
 | 
			
		|||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
char *kdefaultEvdev[] = {
 | 
			
		||||
const char *kdefaultEvdev[] = {
 | 
			
		||||
    "/dev/input/event0",
 | 
			
		||||
    "/dev/input/event1",
 | 
			
		||||
    "/dev/input/event2",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -63,7 +63,7 @@ LinuxVTRequest(int sig)
 | 
			
		|||
 | 
			
		||||
/* Check before chowning -- this avoids touching the file system */
 | 
			
		||||
static void
 | 
			
		||||
LinuxCheckChown(char *file)
 | 
			
		||||
LinuxCheckChown(const char *file)
 | 
			
		||||
{
 | 
			
		||||
    struct stat st;
 | 
			
		||||
    __uid_t u;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -738,7 +738,7 @@ MouseInitProtocol(Kmouse * km)
 | 
			
		|||
}
 | 
			
		||||
 | 
			
		||||
static void
 | 
			
		||||
MouseFirstProtocol(Kmouse * km, char *prot)
 | 
			
		||||
MouseFirstProtocol(Kmouse * km, const char *prot)
 | 
			
		||||
{
 | 
			
		||||
    if (prot) {
 | 
			
		||||
        for (km->i_prot = 0; km->i_prot < NUM_PROT; km->i_prot++)
 | 
			
		||||
| 
						 | 
				
			
			@ -887,7 +887,7 @@ MouseRead(int mousePort, void *closure)
 | 
			
		|||
 | 
			
		||||
int MouseInputType;
 | 
			
		||||
 | 
			
		||||
char *kdefaultMouse[] = {
 | 
			
		||||
const char *kdefaultMouse[] = {
 | 
			
		||||
    "/dev/input/mice",
 | 
			
		||||
    "/dev/mouse",
 | 
			
		||||
    "/dev/psaux",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -58,7 +58,7 @@ Ps2ReadBytes(int fd, char *buf, int len, int min)
 | 
			
		|||
    return tot;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
char *Ps2Names[] = {
 | 
			
		||||
const char *Ps2Names[] = {
 | 
			
		||||
    "/dev/psaux",
 | 
			
		||||
/*    "/dev/mouse", */
 | 
			
		||||
    "/dev/input/mice",
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue