Fix warnings.
This commit is contained in:
parent
598c5d549a
commit
d319a0a610
|
@ -42,7 +42,7 @@ static long lastx = 0, lasty = 0;
|
||||||
|
|
||||||
int KdTsPhyScreen = 0;
|
int KdTsPhyScreen = 0;
|
||||||
|
|
||||||
int
|
static int
|
||||||
TsReadBytes (int fd, char *buf, int len, int min)
|
TsReadBytes (int fd, char *buf, int len, int min)
|
||||||
{
|
{
|
||||||
int n, tot;
|
int n, tot;
|
||||||
|
@ -72,18 +72,14 @@ TsReadBytes (int fd, char *buf, int len, int min)
|
||||||
return tot;
|
return tot;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
TsRead (int tsPort, void *closure)
|
TsRead (int tsPort, void *closure)
|
||||||
{
|
{
|
||||||
KdMouseInfo *mi = closure;
|
KdMouseInfo *mi = closure;
|
||||||
int fd = (int) mi->driver;
|
|
||||||
TS_EVENT event;
|
TS_EVENT event;
|
||||||
long buf[3];
|
|
||||||
int n;
|
int n;
|
||||||
long pressure;
|
|
||||||
long x, y;
|
long x, y;
|
||||||
unsigned long flags;
|
unsigned long flags;
|
||||||
unsigned long buttons;
|
|
||||||
|
|
||||||
n = TsReadBytes (tsPort, (char *) &event, sizeof (event), sizeof (event));
|
n = TsReadBytes (tsPort, (char *) &event, sizeof (event), sizeof (event));
|
||||||
if (n == sizeof (event))
|
if (n == sizeof (event))
|
||||||
|
@ -135,7 +131,7 @@ char *TsNames[] = {
|
||||||
|
|
||||||
int TsInputType;
|
int TsInputType;
|
||||||
|
|
||||||
int
|
static int
|
||||||
TsInit (void)
|
TsInit (void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
@ -182,9 +178,11 @@ TsInit (void)
|
||||||
close (fd);
|
close (fd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
TsFini (void)
|
TsFini (void)
|
||||||
{
|
{
|
||||||
KdMouseInfo *mi;
|
KdMouseInfo *mi;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user