From b9aa155761ec538d064bddec8ea147f557c4a313 Mon Sep 17 00:00:00 2001 From: ehouse Date: Fri, 17 Feb 2006 07:31:21 +0000 Subject: [PATCH] cast threadstart func ptrs. Not sure why... --- xwords4/wince/cesockwr.c | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/xwords4/wince/cesockwr.c b/xwords4/wince/cesockwr.c index b401cacb3..e2873d900 100755 --- a/xwords4/wince/cesockwr.c +++ b/xwords4/wince/cesockwr.c @@ -377,11 +377,16 @@ ce_sockwrap_new( MPFORMAL DataRecvProc proc, void* closure ) self->queueAddEvent = CreateEvent( NULL, FALSE, FALSE, NULL ); self->socketConnEvent = CreateEvent( NULL, FALSE, FALSE, NULL ); - - self->threads[WRITER_THREAD] = CreateThread( NULL, 0, WriterThreadProc, - self, 0, NULL ); - self->threads[READER_THREAD] = CreateThread( NULL, 0, ReaderThreadProc, - self, 0, NULL ); + /* I have no idea why these casts are necessary to prevent warnings. All + sigs look right to me. */ + self->threads[WRITER_THREAD] = + CreateThread( NULL, 0, + (LPTHREAD_START_ROUTINE)WriterThreadProc, + self, 0, NULL ); + self->threads[READER_THREAD] = + CreateThread( NULL, 0, + (LPTHREAD_START_ROUTINE)ReaderThreadProc, + self, 0, NULL ); return self; } /* ce_sockwrap_new */