Commit 4f7c11c9 authored by venaas's avatar venaas Committed by venaas

trying to avoid some silly compiler warnings

git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@390 e88ac4ed-0b26-0410-9574-a7f39faa03bf
parent 0ae3e223
......@@ -148,7 +148,7 @@ SSL *dtlsacccon(uint8_t acc, SSL_CTX *ctx, int s, struct sockaddr *addr, struct
mem0bio = BIO_new(BIO_s_mem());
BIO_set_mem_eof_return(mem0bio, -1);
wbio = BIO_new_dgram(s, BIO_NOCLOSE);
BIO_dgram_set_peer(wbio, addr);
i = BIO_dgram_set_peer(wbio, addr); /* i just to avoid warning */
SSL_set_bio(ssl, mem0bio, wbio);
for (i = 0; i < 5; i++) {
......
......@@ -235,7 +235,7 @@ uint8_t *radmsg2buf(struct radmsg *msg, uint8_t *secret) {
/* if secret set we also validate message authenticator if present */
struct radmsg *buf2radmsg(uint8_t *buf, uint8_t *secret, uint8_t *rqauth) {
struct radmsg *msg;
uint8_t t, l, *v, *p, auth[16];
uint8_t t, l, *v = NULL, *p, auth[16];
uint16_t len;
struct tlv *attr;
......
......@@ -2055,7 +2055,7 @@ struct request *createstatsrvrq() {
/* code for removing state not finished */
void *clientwr(void *arg) {
struct server *server = (struct server *)arg;
struct rqout *rqout;
struct rqout *rqout = NULL;
pthread_t clientrdth;
int i, secs, dynconffail = 0;
uint8_t rnd;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment