Revision 3e236955 sysdep/unix/io.c

View differences:

sysdep/unix/io.c
507 507
 *	Sockaddr helper functions
508 508
 */
509 509

  
510
static inline int sockaddr_length(int af)
510
static inline int UNUSED sockaddr_length(int af)
511 511
{ return (af == AF_INET) ? sizeof(struct sockaddr_in) : sizeof(struct sockaddr_in6); }
512 512

  
513 513
static inline void
514
sockaddr_fill4(struct sockaddr_in *sa, ip_addr a, struct iface *ifa, uint port)
514
sockaddr_fill4(struct sockaddr_in *sa, ip_addr a, uint port)
515 515
{
516 516
  memset(sa, 0, sizeof(struct sockaddr_in));
517 517
#ifdef HAVE_SIN_LEN
......
542 542
sockaddr_fill(sockaddr *sa, int af, ip_addr a, struct iface *ifa, uint port)
543 543
{
544 544
  if (af == AF_INET)
545
    sockaddr_fill4((struct sockaddr_in *) sa, a, ifa, port);
545
    sockaddr_fill4((struct sockaddr_in *) sa, a, port);
546 546
  else if (af == AF_INET6)
547 547
    sockaddr_fill6((struct sockaddr_in6 *) sa, a, ifa, port);
548 548
  else
......
550 550
}
551 551

  
552 552
static inline void
553
sockaddr_read4(struct sockaddr_in *sa, ip_addr *a, struct iface **ifa, uint *port)
553
sockaddr_read4(struct sockaddr_in *sa, ip_addr *a, uint *port)
554 554
{
555 555
  *port = ntohs(sa->sin_port);
556 556
  *a = ipa_from_in4(sa->sin_addr);
......
573 573
    goto fail;
574 574

  
575 575
  if (af == AF_INET)
576
    sockaddr_read4((struct sockaddr_in *) sa, a, ifa, port);
576
    sockaddr_read4((struct sockaddr_in *) sa, a, port);
577 577
  else if (af == AF_INET6)
578 578
    sockaddr_read6((struct sockaddr_in6 *) sa, a, ifa, port);
579 579
  else
......
770 770
}
771 771

  
772 772
static inline int
773
sk_set_high_port(sock *s)
773
sk_set_high_port(sock *s UNUSED)
774 774
{
775 775
  /* Port range setting is optional, ignore it if not supported */
776 776

  

Also available in: Unified diff