From 4c56742c9456d13d227a8a39a07dfabd6b77d3a7 Mon Sep 17 00:00:00 2001 From: venaas Date: Tue, 16 Sep 2008 12:38:09 +0000 Subject: simplifying code a bit by using lock per rqout git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@381 e88ac4ed-0b26-0410-9574-a7f39faa03bf --- radsecproxy.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'radsecproxy.h') diff --git a/radsecproxy.h b/radsecproxy.h index d1dcaef..a4eabfc 100644 --- a/radsecproxy.h +++ b/radsecproxy.h @@ -56,12 +56,13 @@ struct request { /* requests that our client will send */ struct rqout { + pthread_mutex_t *lock; /* used when modifying buf/msg/rq */ unsigned char *buf; struct radmsg *msg; + struct request *rq; uint8_t tries; uint8_t received; struct timeval expiry; - struct request *rq; }; /* replies that a server will send */ -- cgit v1.1