[Pcsclite-git-commit] [PCSC] 10/16: ClientCloseSession() 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 fa41a2adf64ad0ca8f9daa8b1db3f46c172cc5bc
Author: Ludovic Rousseau <ludovic.rousseau at free.fr>
Date: Thu May 11 14:54:34 2017 +0200
ClientCloseSession() returns void now
The value returned by ClientCloseSession() was ignored.
Now the ClientCloseSession() function returns void.
---
src/winscard_clnt.c | 2 +-
src/winscard_msg.c | 4 ++--
src/winscard_msg.h | 2 +-
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/src/winscard_clnt.c b/src/winscard_clnt.c
index 538e85c..7666122 100644
--- a/src/winscard_clnt.c
+++ b/src/winscard_clnt.c
@@ -3348,7 +3348,7 @@ static LONG SCardCleanContext(SCONTEXTMAP * targetContextMap)
CHANNEL_MAP * currentChannelMap;
targetContextMap->hContext = 0;
- (void)ClientCloseSession(targetContextMap->dwClientID);
+ ClientCloseSession(targetContextMap->dwClientID);
targetContextMap->dwClientID = 0;
(void)pthread_mutex_destroy(&targetContextMap->mMutex);
diff --git a/src/winscard_msg.c b/src/winscard_msg.c
index bbbb22d..d81875e 100644
--- a/src/winscard_msg.c
+++ b/src/winscard_msg.c
@@ -169,9 +169,9 @@ INTERNAL int ClientSetupSession(uint32_t *pdwClientID)
*
* @retval 0 Success.
*/
-INTERNAL int ClientCloseSession(uint32_t dwClientID)
+INTERNAL void ClientCloseSession(uint32_t dwClientID)
{
- return close(dwClientID);
+ close(dwClientID);
}
/**
diff --git a/src/winscard_msg.h b/src/winscard_msg.h
index 35a68cb..3b721fc 100644
--- a/src/winscard_msg.h
+++ b/src/winscard_msg.h
@@ -278,7 +278,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#else
char *getSocketName(void);
int32_t ClientSetupSession(uint32_t *);
- int32_t ClientCloseSession(uint32_t);
+ void ClientCloseSession(uint32_t);
LONG MessageReceiveTimeout(uint32_t command, /*@out@*/ void *buffer,
uint64_t buffer_size, int32_t filedes, long timeOut);
LONG MessageSendWithHeader(uint32_t command, uint32_t dwClientID,
--
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