diff options
| author | venaas <venaas> | 2008-09-17 14:28:10 +0000 | 
|---|---|---|
| committer | venaas <venaas@e88ac4ed-0b26-0410-9574-a7f39faa03bf> | 2008-09-17 14:28:10 +0000 | 
| commit | 4f7c11c9ea5795ac0dd32540e5045d3fc10f0a89 (patch) | |
| tree | 8a8eba4584092bd3cdd7c67123825c461e6d23e3 | |
| parent | 0ae3e22361c9d7a7ff1cc8532095f5f3975448b5 (diff) | |
trying to avoid some silly compiler warnings
git-svn-id: https://svn.testnett.uninett.no/radsecproxy/trunk@390 e88ac4ed-0b26-0410-9574-a7f39faa03bf
| -rw-r--r-- | dtls.c | 2 | ||||
| -rw-r--r-- | radmsg.c | 2 | ||||
| -rw-r--r-- | radsecproxy.c | 2 | 
3 files changed, 3 insertions, 3 deletions
| @@ -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; diff --git a/radsecproxy.c b/radsecproxy.c index 4a02197..fdb2838 100644 --- a/radsecproxy.c +++ b/radsecproxy.c @@ -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; | 
