From 95cddea6da14d2dd58a2d5e5da775d26d647033f Mon Sep 17 00:00:00 2001 From: Derrick Brashear Date: Wed, 21 Oct 2009 14:42:23 -0400 Subject: [PATCH] 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 --- src/rx/rx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rx/rx.c b/src/rx/rx.c index 84da17e..48e724d 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); -- 1.9.4