Commit d319a0a6 authored by Phil Blundell's avatar Phil Blundell

Fix warnings.

parent 598c5d54
...@@ -42,7 +42,7 @@ static long lastx = 0, lasty = 0; ...@@ -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) ...@@ -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[] = { ...@@ -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) ...@@ -182,9 +178,11 @@ TsInit (void)
close (fd); close (fd);
} }
} }
return 0;
} }
void static void
TsFini (void) TsFini (void)
{ {
KdMouseInfo *mi; KdMouseInfo *mi;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment