[Pcsclite-git-commit] [PCSC] 12/16: SCardCleanContext() returns void now

Ludovic Rousseau rousseau at moszumanska.debian.org
Thu May 11 16:26:04 UTC 2017


This is an automated email from the git hooks/post-receive script.

rousseau pushed a commit to branch master
in repository PCSC.

commit bf89546ea67334a708cc9c904d53a4068733474a
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date:   Thu May 11 14:57:49 2017 +0200

    SCardCleanContext() returns void now
    
    The value returned by SCardCleanContext() was ignored.
    Now the SCardCleanContext() function returns void.
---
 src/winscard_clnt.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/winscard_clnt.c b/src/winscard_clnt.c
index b5dce04..77bb5ff 100644
--- a/src/winscard_clnt.c
+++ b/src/winscard_clnt.c
@@ -375,7 +375,7 @@ static LONG SCardAddContext(SCARDCONTEXT, DWORD);
 static SCONTEXTMAP * SCardGetAndLockContext(SCARDCONTEXT);
 static SCONTEXTMAP * SCardGetContextTH(SCARDCONTEXT);
 static void SCardRemoveContext(SCARDCONTEXT);
-static LONG SCardCleanContext(SCONTEXTMAP *);
+static void SCardCleanContext(SCONTEXTMAP *);
 
 static LONG SCardAddHandle(SCARDHANDLE, SCONTEXTMAP *, LPCSTR);
 static LONG SCardGetContextChannelAndLockFromHandle(SCARDHANDLE,
@@ -3339,7 +3339,7 @@ static void SCardRemoveContext(SCARDCONTEXT hContext)
 		SCardCleanContext(currentContextMap);
 }
 
-static LONG SCardCleanContext(SCONTEXTMAP * targetContextMap)
+static void SCardCleanContext(SCONTEXTMAP * targetContextMap)
 {
 	int list_index, lrv;
 	int listSize;
@@ -3379,7 +3379,7 @@ static LONG SCardCleanContext(SCONTEXTMAP * targetContextMap)
 
 	free(targetContextMap);
 
-	return SCARD_S_SUCCESS;
+	return;
 }
 
 /*

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pcsclite/PCSC.git



More information about the Pcsclite-cvs-commit mailing list