From: Jeffrey Altman Date: Wed, 20 Feb 2008 17:17:21 +0000 (+0000) Subject: rx-osi_socket-20080220 X-Git-Tag: BP-openafs-windows-kdfs-ifs~91 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=5067e6786dc93b8760edf6b1b9d92c3999caea7e;p=packages%2Fo%2Fopenafs.git rx-osi_socket-20080220 LICENSE MIT The portable type to be used for sockets is osi_socket not int. On 64-bit Windows this caused failures when hot threads were enabled. --- diff --git a/src/rx/rx_pthread.c b/src/rx/rx_pthread.c index 0a14c0f5c..ebd135162 100644 --- a/src/rx/rx_pthread.c +++ b/src/rx/rx_pthread.c @@ -213,7 +213,7 @@ rxi_ReScheduleEvents(void) /* Loop to listen on a socket. Return setting *newcallp if this * thread should become a server thread. */ static void -rxi_ListenerProc(int sock, int *tnop, struct rx_call **newcallp) +rxi_ListenerProc(osi_socket sock, int *tnop, struct rx_call **newcallp) { unsigned int host; u_short port; @@ -259,7 +259,7 @@ static void * rx_ListenerProc(void *argp) { int threadID; - int sock = (int)argp; + osi_socket sock = (osi_socket)argp; struct rx_call *newcall; while (1) { @@ -282,7 +282,7 @@ rx_ListenerProc(void *argp) void rx_ServerProc(void) { - int sock; + osi_socket sock; int threadID; struct rx_call *newcall = NULL;