[Pcsclite-cvs-commit] r2247 - trunk/PCSC/src
Ludovic Rousseau
rousseau at alioth.debian.org
Thu Nov 30 21:48:08 CET 2006
Author: rousseau
Date: 2006-11-30 21:48:08 +0100 (Thu, 30 Nov 2006)
New Revision: 2247
Modified:
trunk/PCSC/src/winscard_msg.c
Log:
use "char *" variables instead of "void *" when arithmetic is done
(typically ptr+offset).
Avoids: warning: pointer of type 'void *' used in arithmetic
Modified: trunk/PCSC/src/winscard_msg.c
===================================================================
--- trunk/PCSC/src/winscard_msg.c 2006-11-30 20:39:09 UTC (rev 2246)
+++ trunk/PCSC/src/winscard_msg.c 2006-11-30 20:48:08 UTC (rev 2247)
@@ -139,9 +139,11 @@
* @retval -1 Socket is closed.
* @retval -1 A signal was received.
*/
-INTERNAL int SHMMessageSend(void *buffer, size_t buffer_size,
+INTERNAL int SHMMessageSend(void *buffer_void, size_t buffer_size,
int filedes, int blockAmount)
{
+ char *buffer = buffer_void;
+
/*
* default is success
*/
@@ -262,9 +264,11 @@
* @retval -1 Socket is closed.
* @retval -1 A signal was received.
*/
-INTERNAL int SHMMessageReceive(void *buffer, size_t buffer_size,
+INTERNAL int SHMMessageReceive(void *buffer_void, size_t buffer_size,
int filedes, int blockAmount)
{
+ char *buffer = buffer_void;
+
/*
* default is success
*/
@@ -386,8 +390,10 @@
* @return Same error codes as SHMMessageSend().
*/
INTERNAL int WrapSHMWrite(unsigned int command, DWORD dwClientID,
- unsigned int size, unsigned int blockAmount, void *data)
+ unsigned int size, unsigned int blockAmount, void *data_void)
{
+ char *data = data_void;
+
sharedSegmentMsg msgStruct;
int ret;
More information about the Pcsclite-cvs-commit
mailing list