On Wed, Sep 14, 2005 at 01:47:00PM +0900, Mike McCormack wrote:
ChangeLog: fix a gcc 4.0 warning
Index: server/mailslot.c
RCS file: /home/mike/src/wine-cvs/wine/server/mailslot.c,v retrieving revision 1.9 diff -u -p -r1.9 mailslot.c --- server/mailslot.c 14 Jul 2005 12:18:05 -0000 1.9 +++ server/mailslot.c 14 Sep 2005 00:18:08 -0000 @@ -207,7 +207,7 @@ static void mailslot_queue_async( struct }
if (mailslot->read_timeout != MAILSLOT_WAIT_FOREVER)
timeout = &mailslot->read_timeout;
timeout = (int*) &mailslot->read_timeout;
It would be better to change read_timeout to "int" instead I guess.
Ciao, Marcus
Marcus Meissner wrote:
if (mailslot->read_timeout != MAILSLOT_WAIT_FOREVER)
timeout = &mailslot->read_timeout;
timeout = (int*) &mailslot->read_timeout;
It would be better to change read_timeout to "int" instead I guess.
I'm not really sure, that why I've been avoiding changing this...
CreateMailslot takes timeout as a DWORD, and timeouts should not be negative. Maybe fd_queue_async_timeout should take an unsigned int *?
Mike