[Pcsclite-cvs-commit] Drivers/ccid/src ccid_serial.c,1.20,1.21 ccid_serial.h,1.5,1.6

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


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

Modified Files:
	ccid_serial.c ccid_serial.h 
Log Message:
ReadChunk() and get_bytes() are internal use in ccid_serial.c so declare
them static


Index: ccid_serial.c
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/ccid_serial.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -d -r1.20 -r1.21
--- ccid_serial.c	9 Jul 2004 08:28:44 -0000	1.20
+++ ccid_serial.c	9 Jul 2004 08:40:15 -0000	1.21
@@ -137,6 +137,13 @@
 /* no need to initialize to 0 since it is static */
 static _serialDevice serialDevice[PCSCLITE_MAX_READERS];
 
+/* unexported functions */
+static int ReadChunk(unsigned int lun, unsigned char *buffer, int buffer_length,
+	int min_length);
+
+static int get_bytes(unsigned int lun, unsigned char *buffer, int length);
+
+
 /*****************************************************************************
  * 
  *				WriteSerial: Send bytes to the card reader
@@ -369,7 +376,8 @@
  *				ReadChunk: read a minimum number of bytes
  *
  *****************************************************************************/
-int ReadChunk(unsigned int lun, unsigned char *buffer, int buffer_length, int min_length)
+static int ReadChunk(unsigned int lun, unsigned char *buffer,
+	int buffer_length, int min_length)
 {
 	int fd = serialDevice[LunToReaderIndex(lun)].fd;
 # ifndef S_SPLINT_S

Index: ccid_serial.h
===================================================================
RCS file: /cvsroot/pcsclite/Drivers/ccid/src/ccid_serial.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- ccid_serial.h	9 Jul 2004 07:10:17 -0000	1.5
+++ ccid_serial.h	9 Jul 2004 08:40:15 -0000	1.6
@@ -31,10 +31,5 @@
 status_t ReadSerial(unsigned int lun, unsigned int *length, unsigned char
 	*Buffer);
 
-int get_bytes(unsigned int lun, unsigned char *buffer, int length);
-
-int ReadChunk(unsigned int lun, unsigned char *buffer, int buffer_length, int
-	min_length);
-
 status_t CloseSerial(unsigned int lun);