From e8c95985baf2d68c60285f9025873e5c49b83644 Mon Sep 17 00:00:00 2001 From: mvanbaak Date: Thu, 9 Jul 2009 08:31:24 +0000 Subject: [PATCH] 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. Tested on OpenBSD and Linux both 32 and 64 bit git-svn-id: http://svn.digium.com/svn/asterisk/trunk@205532 f38db490-d61c-443f-a65b-d21fe96a405b --- main/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/ssl.c b/main/ssl.c index 99c2cb4a8..40129f84f 100644 --- a/main/ssl.c +++ b/main/ssl.c @@ -45,7 +45,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)