mirror of
https://git.openafs.org/openafs.git
synced 2025-01-19 15:30:14 +00:00
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 <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
parent
cd2d4ceadc
commit
95cddea6da
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user