[Pcsclite-cvs-commit] r6195 - /trunk/PCSC/src/spy/libpcscspy.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Tue Jan 24 14:21:42 UTC 2012


Author: rousseau
Date: Tue Jan 24 14:21:42 2012
New Revision: 6195

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=6195
Log:
Use LONG/ULONG instead of long/unsigned long

The problem is that PCSC on Mac OS X do not use long but uint32_t. So a
(LONG * or LPDWORD *) parameter (like pcchReaders in SCardListReaders)
is not the same on Linux and Mac OS X for 64-bits CPUs.

LONG is correctly defined on both Linux and Mac OS X so we use it
instead.

Modified:
    trunk/PCSC/src/spy/libpcscspy.c

Modified: trunk/PCSC/src/spy/libpcscspy.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/spy/libpcscspy.c?rev=6195&op=diff
==============================================================================
--- trunk/PCSC/src/spy/libpcscspy.c (original)
+++ trunk/PCSC/src/spy/libpcscspy.c Tue Jan 24 14:21:42 2012
@@ -220,7 +220,7 @@
 	spy_line("0x%08lX", arg);
 }
 
-static void spy_ptr_long(long *arg)
+static void spy_ptr_long(LONG *arg)
 {
 	if (arg)
 		spy_line("0x%08lX", *arg);
@@ -228,7 +228,7 @@
 		spy_line("NULL");
 }
 
-static void spy_ptr_ulong(unsigned long *arg)
+static void spy_ptr_ulong(ULONG *arg)
 {
 	if (arg)
 		spy_line("0x%08lX", *arg);




More information about the Pcsclite-cvs-commit mailing list