diff options
author | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-27 09:56:13 +0000 |
---|---|---|
committer | mvanbaak <mvanbaak@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-07-27 09:56:13 +0000 |
commit | 4b48dfb2eb2368c05285a7a4db3eccabd29a9b5d (patch) | |
tree | 3bd256ffdb506988ca7a43f6a3fcfd586750f1e2 /res/res_crypto.c | |
parent | 640b17dd89a5dc62c2e096e8178679865bd3aaca (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/res_crypto.c')
-rw-r--r-- | res/res_crypto.c | 2 |
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) |