diff options
author | Nick Mathewson <nickm@torproject.org> | 2006-09-06 08:42:20 +0000 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2006-09-06 08:42:20 +0000 |
commit | 365ccf0742b597bc9b28be30f0af6581a734d019 (patch) | |
tree | 9c5c627104514aace1a856445d1b86c837538d60 /src/common | |
parent | 000b7b287c770ce4b7a88eaae5f87601d61faf4a (diff) | |
download | tor-365ccf0742b597bc9b28be30f0af6581a734d019.tar.gz tor-365ccf0742b597bc9b28be30f0af6581a734d019.zip |
r8725@Kushana: nickm | 2006-09-06 04:39:29 -0400
spawn_func fixes: have cpuworker_main and dnsworker_main confirm to the right interfaces [casting func to void* is icky]. Also, make pthread_create() build without warnings.
svn:r8327
Diffstat (limited to 'src/common')
-rw-r--r-- | src/common/compat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/common/compat.c b/src/common/compat.c index 44bb63f970..22acadff2a 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -936,14 +936,14 @@ get_uname(void) * invoke them in a way pthreads would expect. */ typedef struct tor_pthread_data_t { - int (*func)(void *); + void (*func)(void *); void *data; } tor_pthread_data_t; static void * tor_pthread_helper_fn(void *_data) { tor_pthread_data_t *data = _data; - int (*func)(void*); + void (*func)(void*); void *arg; func = data->func; arg = data->data; |