[Pcsclite-cvs-commit] r3253 - in /trunk/PCSC/src: eventhandler.c testpcsc.c winscard_svc.c

rousseau at users.alioth.debian.org rousseau at users.alioth.debian.org
Fri Jan 2 14:01:11 UTC 2009


Author: rousseau
Date: Fri Jan  2 14:01:10 2009
New Revision: 3253

URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=3253
Log:
declare functions static where possible

Modified:
    trunk/PCSC/src/eventhandler.c
    trunk/PCSC/src/testpcsc.c
    trunk/PCSC/src/winscard_svc.c

Modified: trunk/PCSC/src/eventhandler.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/eventhandler.c?rev=3253&op=diff
==============================================================================
--- trunk/PCSC/src/eventhandler.c (original)
+++ trunk/PCSC/src/eventhandler.c Fri Jan  2 14:01:10 2009
@@ -39,7 +39,7 @@
 
 static PREADER_STATE readerStates[PCSCLITE_MAX_READERS_CONTEXTS];
 
-void EHStatusHandlerThread(PREADER_CONTEXT);
+static void EHStatusHandlerThread(PREADER_CONTEXT);
 
 LONG EHInitializeEventStructures(void)
 {
@@ -228,7 +228,7 @@
 		+ (counter << 16);
 }
 
-void EHStatusHandlerThread(PREADER_CONTEXT rContext)
+static void EHStatusHandlerThread(PREADER_CONTEXT rContext)
 {
 	LONG rv;
 	LPCSTR lpcReader;

Modified: trunk/PCSC/src/testpcsc.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/testpcsc.c?rev=3253&op=diff
==============================================================================
--- trunk/PCSC/src/testpcsc.c (original)
+++ trunk/PCSC/src/testpcsc.c Fri Jan  2 14:01:10 2009
@@ -35,8 +35,7 @@
 #define NORMAL "\33[0m"
 #define MAGENTA "\33[35m"
 
-void test_rv(LONG rv, SCARDCONTEXT hContext, int dont_panic);
-void test_rv(LONG rv, SCARDCONTEXT hContext, int dont_panic)
+static void test_rv(LONG rv, SCARDCONTEXT hContext, int dont_panic)
 {
 	if (rv != SCARD_S_SUCCESS)
 	{

Modified: trunk/PCSC/src/winscard_svc.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/winscard_svc.c?rev=3253&op=diff
==============================================================================
--- trunk/PCSC/src/winscard_svc.c (original)
+++ trunk/PCSC/src/winscard_svc.c Fri Jan  2 14:01:10 2009
@@ -48,13 +48,13 @@
 	int protocol_major, protocol_minor;	/**< Protocol number agreed between client and server*/
 } psContext[PCSCLITE_MAX_APPLICATIONS_CONTEXTS];
 
-LONG MSGCheckHandleAssociation(SCARDHANDLE, DWORD);
-LONG MSGFunctionDemarshall(psharedSegmentMsg, DWORD);
-LONG MSGAddContext(SCARDCONTEXT, DWORD);
-LONG MSGRemoveContext(SCARDCONTEXT, DWORD);
-LONG MSGAddHandle(SCARDCONTEXT, SCARDHANDLE, DWORD);
-LONG MSGRemoveHandle(SCARDHANDLE, DWORD);
-LONG MSGCleanupClient(DWORD);
+static LONG MSGCheckHandleAssociation(SCARDHANDLE, DWORD);
+static LONG MSGFunctionDemarshall(psharedSegmentMsg, DWORD);
+static LONG MSGAddContext(SCARDCONTEXT, DWORD);
+static LONG MSGRemoveContext(SCARDCONTEXT, DWORD);
+static LONG MSGAddHandle(SCARDCONTEXT, SCARDHANDLE, DWORD);
+static LONG MSGRemoveHandle(SCARDHANDLE, DWORD);
+static LONG MSGCleanupClient(DWORD);
 
 static void ContextThread(LPVOID pdwIndex);
 
@@ -252,7 +252,8 @@
  * @param[in] msgStruct Message to be demarshalled and executed.
  * @param[in] dwContextIndex
  */
-LONG MSGFunctionDemarshall(psharedSegmentMsg msgStruct, DWORD dwContextIndex)
+static LONG MSGFunctionDemarshall(psharedSegmentMsg msgStruct,
+	DWORD dwContextIndex)
 {
 	LONG rv;
 	establish_struct *esStr;
@@ -619,13 +620,13 @@
 	return 0;
 }
 
-LONG MSGAddContext(SCARDCONTEXT hContext, DWORD dwContextIndex)
+static LONG MSGAddContext(SCARDCONTEXT hContext, DWORD dwContextIndex)
 {
 	psContext[dwContextIndex].hContext = hContext;
 	return SCARD_S_SUCCESS;
 }
 
-LONG MSGRemoveContext(SCARDCONTEXT hContext, DWORD dwContextIndex)
+static LONG MSGRemoveContext(SCARDCONTEXT hContext, DWORD dwContextIndex)
 {
 	int i;
 	LONG rv;
@@ -691,7 +692,8 @@
 	return SCARD_E_INVALID_VALUE;
 }
 
-LONG MSGAddHandle(SCARDCONTEXT hContext, SCARDHANDLE hCard, DWORD dwContextIndex)
+static LONG MSGAddHandle(SCARDCONTEXT hContext, SCARDHANDLE hCard,
+	DWORD dwContextIndex)
 {
 	int i;
 
@@ -723,7 +725,7 @@
 	return SCARD_E_INVALID_VALUE;
 }
 
-LONG MSGRemoveHandle(SCARDHANDLE hCard, DWORD dwContextIndex)
+static LONG MSGRemoveHandle(SCARDHANDLE hCard, DWORD dwContextIndex)
 {
 	int i;
 
@@ -740,7 +742,7 @@
 }
 
 
-LONG MSGCheckHandleAssociation(SCARDHANDLE hCard, DWORD dwContextIndex)
+static LONG MSGCheckHandleAssociation(SCARDHANDLE hCard, DWORD dwContextIndex)
 {
 	int i;
 
@@ -759,7 +761,7 @@
 	return -1;
 }
 
-LONG MSGCleanupClient(DWORD dwContextIndex)
+static LONG MSGCleanupClient(DWORD dwContextIndex)
 {
 	if (psContext[dwContextIndex].hContext != 0)
 	{




More information about the Pcsclite-cvs-commit mailing list