Commit 0479b443 authored by Ondrej Zajicek's avatar Ondrej Zajicek
Browse files

Fixes some warnings.

parent 7c005517
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}

+2 −2
Original line number Diff line number Diff line
@@ -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;

+1 −1
Original line number Diff line number Diff line
@@ -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)
		{