aboutsummaryrefslogtreecommitdiff
path: root/src/common/compat.c
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2005-07-22 21:12:10 +0000
committerNick Mathewson <nickm@torproject.org>2005-07-22 21:12:10 +0000
commit18c11eb3bcbd042eba410c1f01659ea6ad0aa2df (patch)
tree2a646f404190c10164bc93ff7f90dc823c417264 /src/common/compat.c
parentd42aae7cfbe5e896b18e2502034d1bc8ff93dac1 (diff)
downloadtor-18c11eb3bcbd042eba410c1f01659ea6ad0aa2df.tar.gz
tor-18c11eb3bcbd042eba410c1f01659ea6ad0aa2df.zip
Be consistent about preferring foo* to struct foo*
svn:r4637
Diffstat (limited to 'src/common/compat.c')
-rw-r--r--src/common/compat.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/common/compat.c b/src/common/compat.c
index 4da5d0da6e..2f7d0399cb 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))