Commit d6ba979b authored by Ludovic Rousseau's avatar Ludovic Rousseau

Fix compiler warning: cast between incompatible function

winscard_svc.c: In function ‘CreateContextThread’:
winscard_svc.c:237:3: warning: cast between incompatible function types from ‘void (*)(void *)’ to ‘void * (*)(void *)’ [-Wcast-function-type]
   (PCSCLITE_THREAD_FUNCTION( )) ContextThread, (LPVOID) newContext);
   ^
parent 0984e0f4
...@@ -95,7 +95,7 @@ static LONG MSGAddHandle(SCARDCONTEXT, SCARDHANDLE, SCONTEXT *); ...@@ -95,7 +95,7 @@ static LONG MSGAddHandle(SCARDCONTEXT, SCARDHANDLE, SCONTEXT *);
static LONG MSGRemoveHandle(SCARDHANDLE, SCONTEXT *); static LONG MSGRemoveHandle(SCARDHANDLE, SCONTEXT *);
static void MSGCleanupClient(SCONTEXT *); static void MSGCleanupClient(SCONTEXT *);
static void ContextThread(LPVOID pdwIndex); static void * ContextThread(LPVOID pdwIndex);
extern READER_STATE readerStates[PCSCLITE_MAX_READERS_CONTEXTS]; extern READER_STATE readerStates[PCSCLITE_MAX_READERS_CONTEXTS];
...@@ -325,7 +325,7 @@ static const char *CommandsText[] = { ...@@ -325,7 +325,7 @@ static const char *CommandsText[] = {
ret = MessageSend(&v, sizeof(v), filedes); \ ret = MessageSend(&v, sizeof(v), filedes); \
} while (0) } while (0)
static void ContextThread(LPVOID newContext) static void * ContextThread(LPVOID newContext)
{ {
SCONTEXT * threadContext = (SCONTEXT *) newContext; SCONTEXT * threadContext = (SCONTEXT *) newContext;
int32_t filedes = threadContext->dwClientID; int32_t filedes = threadContext->dwClientID;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment