[Pcsclite-cvs-commit] CVS Drivers/ccid/src
CVS User rousseau
ludovic.rousseau@free.fr
Mon, 02 May 2005 12:07:14 +0000
Update of /cvsroot/pcsclite/Drivers/ccid/src
In directory haydn:/tmp/cvs-serv23189
Modified Files:
ccid.c ccid.h
Log Message:
ccid_error(): function is (const char *) instead of (char *) to avoid a
"warning: passing arg 4 of `ccid_error' discards qualifiers from pointer
target type" using gcc 3.4
--- /cvsroot/pcsclite/Drivers/ccid/src/ccid.c 2005/03/17 10:27:57 1.15
+++ /cvsroot/pcsclite/Drivers/ccid/src/ccid.c 2005/05/02 12:07:13 1.16
@@ -18,7 +18,7 @@
*/
/*
- * $Id: ccid.c,v 1.15 2005/03/17 10:27:57 rousseau Exp $
+ * $Id: ccid.c,v 1.16 2005/05/02 12:07:13 rousseau Exp $
*/
#include <stdio.h>
@@ -112,7 +112,7 @@
* ccid_error
*
****************************************************************************/
-void ccid_error(int error, char *file, int line, char *function)
+void ccid_error(int error, char *file, int line, const char *function)
{
char *text;
char var_text[20];
--- /cvsroot/pcsclite/Drivers/ccid/src/ccid.h 2005/05/02 09:16:26 1.25
+++ /cvsroot/pcsclite/Drivers/ccid/src/ccid.h 2005/05/02 12:07:13 1.26
@@ -18,7 +18,7 @@
*/
/*
- * $Id: ccid.h,v 1.25 2005/05/02 09:16:26 rousseau Exp $
+ * $Id: ccid.h,v 1.26 2005/05/02 12:07:13 rousseau Exp $
*/
typedef struct
@@ -131,7 +131,7 @@
int ccid_open_hack(unsigned int reader_index);
-void ccid_error(int error, char *file, int line, char *function);
+void ccid_error(int error, char *file, int line, const char *function);
_ccid_descriptor *get_ccid_descriptor(unsigned int reader_index);
/* convert a 4 byte integer in USB format into an int */