diff options
author | Nick Mathewson <nickm@torproject.org> | 2005-09-14 20:59:25 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2005-09-14 20:59:25 +0000 |
commit | 922cee3d0c63e72f2e7a7d9b495b8fa65f2312e2 (patch) | |
tree | 1fcf272fb192665ea6573b69651481c4dbd36874 /src/common | |
parent | d9ee94543e000aaae2f5bae3dde0d60b33ee8b2d (diff) | |
download | tor-922cee3d0c63e72f2e7a7d9b495b8fa65f2312e2.tar tor-922cee3d0c63e72f2e7a7d9b495b8fa65f2312e2.tar.gz |
Clean up a few warnings that make gcc twig out a bit.
svn:r5062
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 07b21ccb7..39b8f953f 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -1001,7 +1001,12 @@ tor_mutex_free(tor_mutex_t *m) unsigned long tor_get_thread_id(void) { - return (unsigned long)pthread_self(); + union { + pthread_t thr; + unsigned long id; + } r; + r.thr = pthread_self(); + return r.id; } #else struct tor_mutex_t { |