diff options
author | Ondrej Zajicek <santiago@crfreenet.org> | 2014-10-02 10:59:34 +0200 |
---|---|---|
committer | Ondrej Zajicek <santiago@crfreenet.org> | 2014-10-02 12:52:50 +0200 |
commit | 0479b44373892db273f3e0365c7cbaad2eeb0d5f (patch) | |
tree | bdce31c6a2f693e112fe62bd1146f7338cf56d64 | |
parent | 7c00551749005ad951845eb924f76e1fd28e62a2 (diff) |
Fixes some warnings.
-rw-r--r-- | nest/rt-attr.c | 2 | ||||
-rw-r--r-- | proto/bfd/bfd.c | 4 | ||||
-rw-r--r-- | sysdep/unix/io.c | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/nest/rt-attr.c b/nest/rt-attr.c index 97a1bc27..09691bf1 100644 --- a/nest/rt-attr.c +++ b/nest/rt-attr.c @@ -815,7 +815,7 @@ rta_alloc_hash(void) static inline unsigned int rta_hash(rta *a) { - return (((unsigned) a->src) ^ ipa_hash(a->gw) ^ + return (((uint) (uintptr_t) a->src) ^ ipa_hash(a->gw) ^ mpnh_hash(a->nexthops) ^ ea_hash(a->eattrs)) & 0xffff; } diff --git a/proto/bfd/bfd.c b/proto/bfd/bfd.c index 7bbe8c21..23e04e40 100644 --- a/proto/bfd/bfd.c +++ b/proto/bfd/bfd.c @@ -1062,7 +1062,7 @@ bfd_copy_config(struct proto_config *dest, struct proto_config *src) // struct bfd_config *s = (struct bfd_config *) src; /* We clean up patt_list and neigh_list, neighbors and ifaces are non-sharable */ - init_list(&d->patt_list); + init_list(&d->patt_list); init_list(&d->neigh_list); } @@ -1071,7 +1071,7 @@ bfd_show_sessions(struct proto *P) { byte tbuf[TM_DATETIME_BUFFER_SIZE]; struct bfd_proto *p = (struct bfd_proto *) P; - uint state, diag; + uint state, diag UNUSED; u32 tx_int, timeout; const char *ifname; diff --git a/sysdep/unix/io.c b/sysdep/unix/io.c index a5477695..164038ec 100644 --- a/sysdep/unix/io.c +++ b/sysdep/unix/io.c @@ -1967,7 +1967,7 @@ io_loop(void) while (current_sock && count < MAX_RX_STEPS) { sock *s = current_sock; - int e; + int e UNUSED; if ((s->type < SK_MAGIC) && FD_ISSET(s->fd, &rd) && s->rx_hook) { |