Fixes some warnings.

This commit is contained in:
Ondrej Zajicek 2014-10-02 10:59:34 +02:00
parent 7c00551749
commit 0479b44373
3 changed files with 4 additions and 4 deletions

View file

@ -815,7 +815,7 @@ rta_alloc_hash(void)
static inline unsigned int static inline unsigned int
rta_hash(rta *a) 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; mpnh_hash(a->nexthops) ^ ea_hash(a->eattrs)) & 0xffff;
} }

View file

@ -1062,7 +1062,7 @@ bfd_copy_config(struct proto_config *dest, struct proto_config *src)
// struct bfd_config *s = (struct bfd_config *) src; // struct bfd_config *s = (struct bfd_config *) src;
/* We clean up patt_list and neigh_list, neighbors and ifaces are non-sharable */ /* 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); init_list(&d->neigh_list);
} }
@ -1071,7 +1071,7 @@ bfd_show_sessions(struct proto *P)
{ {
byte tbuf[TM_DATETIME_BUFFER_SIZE]; byte tbuf[TM_DATETIME_BUFFER_SIZE];
struct bfd_proto *p = (struct bfd_proto *) P; struct bfd_proto *p = (struct bfd_proto *) P;
uint state, diag; uint state, diag UNUSED;
u32 tx_int, timeout; u32 tx_int, timeout;
const char *ifname; const char *ifname;

View file

@ -1967,7 +1967,7 @@ io_loop(void)
while (current_sock && count < MAX_RX_STEPS) while (current_sock && count < MAX_RX_STEPS)
{ {
sock *s = current_sock; sock *s = current_sock;
int e; int e UNUSED;
if ((s->type < SK_MAGIC) && FD_ISSET(s->fd, &rd) && s->rx_hook) if ((s->type < SK_MAGIC) && FD_ISSET(s->fd, &rd) && s->rx_hook)
{ {