summaryrefslogtreecommitdiff
path: root/radsecproxy.c
diff options
context:
space:
mode:
authorvenaas <venaas>2008-07-21 09:46:19 +0000
committervenaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf>2008-07-21 09:46:19 +0000
commit51cfff642b9e87ed956ff19a19d0d8d232938e14 (patch)
treed53c8f6c8e600b7b6b623cfdb6ec7126c263a4c1 /radsecproxy.c
parentd9826419637bab4349d89bbe1e690a62424d7e21 (diff)
removed some unnecessary casting
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@312 e88ac4ed-0b26-0410-9574-a7f39faa03bf
Diffstat (limited to 'radsecproxy.c')
-rw-r--r--radsecproxy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/radsecproxy.c b/radsecproxy.c
index 58a1e7f..b05803c 100644
--- a/radsecproxy.c
+++ b/radsecproxy.c
@@ -1259,7 +1259,7 @@ void sendrq(struct server *to, struct request *rq) {
goto exit;
}
- if (*(uint8_t *)rq->buf == RAD_Accounting_Request) {
+ if (*rq->buf == RAD_Accounting_Request) {
if (!radsign(rq->buf, (unsigned char *)to->conf->secret)) {
debug(DBG_WARN, "sendrq: failed to sign Accounting-Request message");
freerqdata(rq);
@@ -2552,7 +2552,7 @@ void *udpserverrd(void *arg) {
for (;;) {
memset(&rq, 0, sizeof(struct request));
rq.buf = radudpget(rdarg->s, &rq.from, NULL, &rq.fromsa);
- if (rdarg->acconly && *(uint8_t *)rq.buf != RAD_Accounting_Request) {
+ if (rdarg->acconly && *rq.buf != RAD_Accounting_Request) {
debug(DBG_INFO, "udpserverrd: got something other than accounting-request, ignoring");
freerqdata(&rq);
continue;