[Pcsclite-cvs-commit] PCSC/src eventhandler.c,1.16,1.17 hotplug_libusb.c,1.25,1.26 thread_generic.h,1.11,1.12 winscard_svc.c,1.24,1.25
rousseau@haydn.debian.org
rousseau@haydn.debian.org
Update of /cvsroot/pcsclite/PCSC/src
In directory haydn:/tmp/cvs-serv10266
Modified Files:
eventhandler.c hotplug_libusb.c thread_generic.h
winscard_svc.c
Log Message:
add a ' ' argument in PCSCLITE_THREAD_FUNCTION( ) so that old gcc
(gcc-2.95) does not comply with "macro `PCSCLITE_THREAD_FUNCTION' used
without args" any more.
Index: eventhandler.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/eventhandler.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -d -r1.16 -r1.17
--- eventhandler.c 25 May 2004 12:44:30 -0000 1.16
+++ eventhandler.c 26 May 2004 20:53:38 -0000 1.17
@@ -204,7 +204,7 @@
rContext->dwPublicID = i;
rv = SYS_ThreadCreate(&rContext->pthThread, NULL,
- (PCSCLITE_THREAD_FUNCTION())EHStatusHandlerThread, (LPVOID) rContext);
+ (PCSCLITE_THREAD_FUNCTION( ))EHStatusHandlerThread, (LPVOID) rContext);
if (rv == 1)
return SCARD_S_SUCCESS;
else
Index: hotplug_libusb.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/hotplug_libusb.c,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- hotplug_libusb.c 25 May 2004 12:44:30 -0000 1.25
+++ hotplug_libusb.c 26 May 2004 20:53:38 -0000 1.26
@@ -327,7 +327,7 @@
HPReadBundleValues();
SYS_ThreadCreate(&usbNotifyThread, NULL,
- (PCSCLITE_THREAD_FUNCTION()) HPEstablishUSBNotifications, 0);
+ (PCSCLITE_THREAD_FUNCTION( )) HPEstablishUSBNotifications, 0);
return 0;
}
Index: thread_generic.h
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/thread_generic.h,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- thread_generic.h 25 May 2004 12:44:30 -0000 1.11
+++ thread_generic.h 26 May 2004 20:53:38 -0000 1.12
@@ -43,7 +43,7 @@
int SYS_MutexDestroy(PCSCLITE_MUTEX_T);
int SYS_MutexLock(PCSCLITE_MUTEX_T);
int SYS_MutexUnLock(PCSCLITE_MUTEX_T);
- int SYS_ThreadCreate(PCSCLITE_THREAD_T *, LPVOID, PCSCLITE_THREAD_FUNCTION(), LPVOID);
+ int SYS_ThreadCreate(PCSCLITE_THREAD_T *, LPVOID, PCSCLITE_THREAD_FUNCTION( ), LPVOID);
int SYS_ThreadCancel(PCSCLITE_THREAD_T *);
int SYS_ThreadDetach(PCSCLITE_THREAD_T);
int SYS_ThreadJoin(PCSCLITE_THREAD_T *, LPVOID*);
Index: winscard_svc.c
===================================================================
RCS file: /cvsroot/pcsclite/PCSC/src/winscard_svc.c,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- winscard_svc.c 25 May 2004 12:44:30 -0000 1.24
+++ winscard_svc.c 26 May 2004 20:53:38 -0000 1.25
@@ -78,7 +78,7 @@
dwNextContextIndex = i;
if (SYS_ThreadCreate(&psContext[i].pthThread, NULL,
- (PCSCLITE_THREAD_FUNCTION()) ContextThread,
+ (PCSCLITE_THREAD_FUNCTION( )) ContextThread,
(LPVOID) &dwNextContextIndex) != 1)
{
SYS_CloseFile(psContext[i].dwClientID);