Skip to content

Commit

Permalink
ClientCloseSession() returns void now
Browse files Browse the repository at this point in the history
The value returned by ClientCloseSession() was ignored.
Now the ClientCloseSession() function returns void.
  • Loading branch information
LudovicRousseau committed May 11, 2017
1 parent 784f217 commit fa41a2a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/winscard_clnt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
4 changes: 2 additions & 2 deletions src/winscard_msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion src/winscard_msg.h
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit fa41a2a

Please sign in to comment.