[xserver-commit] xserver/hw/kdrive/linux ts.c,1.16,1.17

Phil Blundell xserver-commit@pdx.freedesktop.org
Fri, 07 Nov 2003 15:00:08 -0800


Committed by: pb

Update of /cvs/xserver/xserver/hw/kdrive/linux
In directory pdx:/tmp/cvs-serv8159/hw/kdrive/linux

Modified Files:
	ts.c 
Log Message:
2003-11-07  Phil Blundell  <pb@nexus.co.uk>

	* hw/kdrive/linux/ts.c: Fix warnings.



Index: ts.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/kdrive/linux/ts.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- ts.c	4 Oct 2003 02:56:54 -0000	1.16
+++ ts.c	7 Nov 2003 23:00:06 -0000	1.17
@@ -42,7 +42,7 @@
 
 int KdTsPhyScreen = 0;
 
-int
+static int
 TsReadBytes (int fd, char *buf, int len, int min)
 {
     int		    n, tot;
@@ -72,18 +72,14 @@
     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 @@
 
 int TsInputType;
 
-int
+static int
 TsInit (void)
 {
     int		i;
@@ -182,9 +178,11 @@
 		close (fd);
 	}
     }
+
+    return 0;
 }
 
-void
+static void
 TsFini (void)
 {
     KdMouseInfo	*mi;