[Pcsclite-cvs-commit] r2308 - trunk/PCSC/src

Ludovic Rousseau rousseau at alioth.debian.org
Sat Jan 6 21:26:57 CET 2007


Author: rousseau
Date: 2007-01-06 21:26:57 +0100 (Sat, 06 Jan 2007)
New Revision: 2308

Modified:
   trunk/PCSC/src/winscard_msg.c
   trunk/PCSC/src/winscard_msg.h
Log:
change prototype of SHMCleanupSharedSegment() from (..., char *pcFilePath) to
(..., const char *pcFilePath) to avoid:
warning: passing argument 2 of 'SHMCleanupSharedSegment' discards
qualifiers from pointer target type


Modified: trunk/PCSC/src/winscard_msg.c
===================================================================
--- trunk/PCSC/src/winscard_msg.c	2007-01-06 20:21:47 UTC (rev 2307)
+++ trunk/PCSC/src/winscard_msg.c	2007-01-06 20:26:57 UTC (rev 2308)
@@ -446,7 +446,7 @@
  * @param[in] sockValue Socket to be closed.
  * @param[in] pcFilePath File used by the socket.
  */
-INTERNAL void SHMCleanupSharedSegment(int sockValue, char *pcFilePath)
+INTERNAL void SHMCleanupSharedSegment(int sockValue, const char *pcFilePath)
 {
 	SYS_CloseFile(sockValue);
 	SYS_Unlink(pcFilePath);

Modified: trunk/PCSC/src/winscard_msg.h
===================================================================
--- trunk/PCSC/src/winscard_msg.h	2007-01-06 20:21:47 UTC (rev 2307)
+++ trunk/PCSC/src/winscard_msg.h	2007-01-06 20:26:57 UTC (rev 2308)
@@ -338,7 +338,7 @@
 		int filedes, int blockAmount);
 	int WrapSHMWrite(unsigned int command, DWORD dwClientID, unsigned int size,
 		unsigned int blockAmount, void *data);
-	void SHMCleanupSharedSegment(int, char *);
+	void SHMCleanupSharedSegment(int, const char *);
 
 #ifdef __cplusplus
 }




More information about the Pcsclite-cvs-commit mailing list