summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Blundell <pb@reciva.com>2003-11-07 23:00:06 +0000
committerPhil Blundell <pb@reciva.com>2003-11-07 23:00:06 +0000
commitd319a0a610c90524ad29cab3c6d4d21b5298fc7f (patch)
treee6089bc9dcbf90390b34f967ef1131939d0fc761
parent598c5d549abbb819f3391a2c88432941b546a213 (diff)
Fix warnings.
-rw-r--r--hw/kdrive/linux/ts.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/hw/kdrive/linux/ts.c b/hw/kdrive/linux/ts.c
index f896f6b19..c24570f91 100644
--- a/hw/kdrive/linux/ts.c
+++ b/hw/kdrive/linux/ts.c
@@ -42,7 +42,7 @@ static long lastx = 0, lasty = 0;
int KdTsPhyScreen = 0;
-int
+static int
TsReadBytes (int fd, char *buf, int len, int min)
{
int n, tot;
@@ -72,18 +72,14 @@ TsReadBytes (int fd, char *buf, int len, int min)
return tot;
}
-void
+static void
TsRead (int tsPort, void *closure)
{
KdMouseInfo *mi = closure;
- int fd = (int) mi->driver;
TS_EVENT event;
- long buf[3];
int n;
- long pressure;
long x, y;
unsigned long flags;
- unsigned long buttons;
n = TsReadBytes (tsPort, (char *) &event, sizeof (event), sizeof (event));
if (n == sizeof (event))
@@ -135,7 +131,7 @@ char *TsNames[] = {
int TsInputType;
-int
+static int
TsInit (void)
{
int i;
@@ -182,9 +178,11 @@ TsInit (void)
close (fd);
}
}
+
+ return 0;
}
-void
+static void
TsFini (void)
{
KdMouseInfo *mi;