[Pcsclite-cvs-commit] Drivers/ccid/src/openct proto-t1.c,1.5,1.6

rousseau@haydn.debian.org rousseau@haydn.debian.org


Update of /cvsroot/pcsclite/Drivers/ccid/src/openct
In directory haydn:/tmp/cvs-serv22125/openct

Modified Files:
	proto-t1.c 
Log Message:
define internal functions as static


Index: proto-t1.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/openct/proto-t1.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- proto-t1.c	10 Jul 2004 13:46:20 -0000	1.5
+++ proto-t1.c	15 Jul 2004 08:24:37 -0000	1.6
@@ -65,7 +65,7 @@
 static unsigned	int	t1_build(t1_state_t *, unsigned char *,
 				unsigned char, unsigned char,
 				ct_buf_t *, size_t *);
-unsigned int	t1_rebuild(t1_state_t *t1, unsigned char *block);
+static unsigned int	t1_rebuild(t1_state_t *t1, unsigned char *block);
 static unsigned int	t1_compute_checksum(t1_state_t *,
 				unsigned char *, size_t);
 static int		t1_verify_checksum(t1_state_t *, unsigned char *,
@@ -88,7 +88,7 @@
 	t1->wtx	     = 0;
 }
 
-void
+static void
 t1_set_checksum(t1_state_t *t1, int csum)
 {
 	switch (csum) {
@@ -523,7 +523,7 @@
 	}
 }
 
-unsigned int
+static unsigned int
 t1_build(t1_state_t *t1, unsigned char *block,
 		unsigned char dad, unsigned char pcb,
 		ct_buf_t *bp, size_t *lenp)
@@ -568,7 +568,7 @@
 	return len;
 }
 
-unsigned int
+static unsigned int
 t1_rebuild(t1_state_t *t1, unsigned char *block)
 {
 	unsigned char pcb = t1 -> previous_block[1];
@@ -588,13 +588,13 @@
 /*
  * Build/verify checksum
  */
-unsigned int
+static unsigned int
 t1_compute_checksum(t1_state_t *t1, unsigned char *data, size_t len)
 {
 	return len + t1->checksum(data, len, data + len);
 }
 
-int
+static int
 t1_verify_checksum(t1_state_t *t1, unsigned char *rbuf, size_t len)
 {
 	unsigned char	csum[2];
@@ -616,7 +616,7 @@
 /*
  * Send/receive block
  */
-int
+static int
 t1_xcv(t1_state_t *t1, unsigned char *block, size_t slen, size_t rmax)
 {
 	int		n, m;