aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authormvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-27 09:56:13 +0000
committermvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b>2009-07-27 09:56:13 +0000
commit4b48dfb2eb2368c05285a7a4db3eccabd29a9b5d (patch)
tree3bd256ffdb506988ca7a43f6a3fcfd586750f1e2 /res
parent640b17dd89a5dc62c2e096e8178679865bd3aaca (diff)
backport rev 205532 from trunk:
pthread_self returns a pthread_t which is not an unsigned int on all pthread implementations. Casting it to an unsigned int fixes compiler warnings. git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@208990 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r--res/res_crypto.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/res/res_crypto.c b/res/res_crypto.c
index 4e958f91e..aa4cc9eca 100644
--- a/res/res_crypto.c
+++ b/res/res_crypto.c
@@ -108,7 +108,7 @@ static int ssl_num_locks;
static unsigned long ssl_threadid(void)
{
- return pthread_self();
+ return (unsigned long)pthread_self();
}
static void ssl_lock(int mode, int n, const char *file, int line)