From: Derrick Brashear Date: Wed, 21 Oct 2009 18:42:23 +0000 (-0400) Subject: pthread pid casting X-Git-Tag: openafs-devel-1_5_66~10 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=95cddea6da14d2dd58a2d5e5da775d26d647033f;p=packages%2Fo%2Fopenafs.git pthread pid casting in rx, we use pthread_self (which can return a pointer) as a pid; in order to not cause problems, cast it as we do elsewhere Reviewed-on: http://gerrit.openafs.org/703 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- diff --git a/src/rx/rx.c b/src/rx/rx.c index 84da17e5a..48e724d6d 100755 --- a/src/rx/rx.c +++ b/src/rx/rx.c @@ -763,7 +763,7 @@ rx_StartServer(int donateMe) static int nProcs; #ifdef AFS_PTHREAD_ENV pid_t pid; - pid = (pid_t) pthread_self(); + pid = afs_pointer_to_int(pthread_self()); #else /* AFS_PTHREAD_ENV */ PROCESS pid; LWP_CurrentProcess(&pid);