Commit 3c80087b authored by Ludovic Rousseau's avatar Ludovic Rousseau

Fix compiler warning: cast between incompatible function

eventhandler.c: In function ‘EHSpawnEventHandler’:
eventhandler.c:234:3: warning: cast between incompatible function types from ‘void (*)(READER_CONTEXT *)’ {aka ‘void (*)(struct ReaderContext *)’} to ‘void * (*)(void *)’ [-Wcast-function-type]
   (PCSCLITE_THREAD_FUNCTION( ))EHStatusHandlerThread, (LPVOID) rContext);
   ^
parent d6ba979b
......@@ -61,7 +61,7 @@ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
static list_t ClientsWaitingForEvent; /**< list of client file descriptors */
pthread_mutex_t ClientsWaitingForEvent_lock; /**< lock for the above list */
static void EHStatusHandlerThread(READER_CONTEXT *);
static void * EHStatusHandlerThread(READER_CONTEXT *);
LONG EHRegisterClientForEvent(int32_t filedes)
{
......@@ -241,7 +241,7 @@ LONG EHSpawnEventHandler(READER_CONTEXT * rContext)
return SCARD_S_SUCCESS;
}
static void EHStatusHandlerThread(READER_CONTEXT * rContext)
static void * EHStatusHandlerThread(READER_CONTEXT * rContext)
{
LONG rv;
#ifndef NO_LOG
......
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