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:
Eric Anholt 2013-08-17 13:07:23 +02:00
parent a9c48a07ee
commit 56c405d46a
4 changed files with 5 additions and 5 deletions

View File

@ -186,7 +186,7 @@ EvdevPtrRead(int evdevPort, void *closure)
}
}
char *kdefaultEvdev[] = {
const char *kdefaultEvdev[] = {
"/dev/input/event0",
"/dev/input/event1",
"/dev/input/event2",

View File

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

View File

@ -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",

View File

@ -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",