From 18c11eb3bcbd042eba410c1f01659ea6ad0aa2df Mon Sep 17 00:00:00 2001 From: Nick Mathewson Date: Fri, 22 Jul 2005 21:12:10 +0000 Subject: Be consistent about preferring foo* to struct foo* svn:r4637 --- src/common/compat.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/common/compat.c') diff --git a/src/common/compat.c b/src/common/compat.c index 4da5d0da6..2f7d0399c 100644 --- a/src/common/compat.c +++ b/src/common/compat.c @@ -733,14 +733,14 @@ get_uname(void) */ #if defined(USE_PTHREADS) -struct tor_pthread_data_t { +typedef struct tor_pthread_data_t { int (*func)(void *); void *data; -}; +} tor_pthread_data_t; static void * tor_pthread_helper_fn(void *_data) { - struct tor_pthread_data_t *data = _data; + tor_pthread_data_t *data = _data; int (*func)(void*); void *arg; func = data->func; @@ -771,8 +771,8 @@ spawn_func(int (*func)(void *), void *data) return 0; #elif defined(USE_PTHREADS) pthread_t thread; - struct tor_pthread_data_t *d; - d = tor_malloc(sizeof(struct tor_pthread_data_t)); + tor_pthread_data_t *d; + d = tor_malloc(sizeof(tor_pthread_data_t)); d->data = data; d->func = func; if (pthread_create(&thread,NULL,tor_pthread_helper_fn,d)) -- cgit v1.2.3