[Pcsclite-cvs-commit] r4540 - /trunk/PCSC/src/winscard_svc.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Sat Nov 7 21:30:26 UTC 2009


Author: rousseau
Date: Sat Nov  7 21:30:26 2009
New Revision: 4540

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=4540
Log:
remove ducplicate READ_BODY() and WRITE_BODY() macros

Modified:
    trunk/PCSC/src/winscard_svc.c

Modified: trunk/PCSC/src/winscard_svc.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_svc.c?rev=4540&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_svc.c (original)
+++ trunk/PCSC/src/winscard_svc.c Sat Nov  7 21:30:26 2009
@@ -115,14 +115,6 @@
  * A list of local functions used to keep track of clients and their
  * connections
  */
-
-#define READ_BODY(v) \
-	if (header.size != sizeof(v)) {printf("%d %d\n", header.size, sizeof(v)); goto wrong_length;} \
-	ret = SHMMessageReceive(&v, sizeof(v), filedes, PCSCLITE_READ_TIMEOUT); \
-	if (ret < 0) { Log2(PCSC_LOG_DEBUG, "Client die: %d", filedes); goto exit; }
-
-#define WRITE_BODY(v) \
-	ret = SHMMessageSend(&v, sizeof(v), filedes, PCSCLITE_WRITE_TIMEOUT);
 
 /**
  * @brief Handles messages received from Clients.




More information about the Pcsclite-cvs-commit mailing list