From c6d8af579cffa9662ed1ea9e6096cccec821c6a1 Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Sat, 12 Sep 2015 12:35:59 +0200 Subject: Fix build warning * pflocal/sock.h (sock_bind): Move declaration. --- pflocal/sock.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pflocal') diff --git a/pflocal/sock.h b/pflocal/sock.h index f827c6f2..29f0f1f7 100644 --- a/pflocal/sock.h +++ b/pflocal/sock.h @@ -114,6 +114,9 @@ void sock_free (struct sock *sock); /* Free a sock derefed too far. */ void _sock_norefs (struct sock *sock); +/* Bind SOCK to ADDR. */ +error_t sock_bind (struct sock *sock, struct addr *addr); + /* Remove a reference from SOCK, possibly freeing it. */ static inline void __attribute__ ((unused)) sock_deref (struct sock *sock) @@ -154,9 +157,6 @@ error_t sock_clone (struct sock *template, struct sock **sock); /* Return a new user port on SOCK in PORT. */ error_t sock_create_port (struct sock *sock, mach_port_t *port); -/* Bind SOCK to ADDR. */ -error_t sock_bind (struct sock *sock, struct addr *addr); - /* Returns SOCK's address in ADDR, with an additional reference added. If SOCK doesn't currently have an address, one is fabricated first. */ error_t sock_get_addr (struct sock *sock, struct addr **addr); -- cgit v1.2.3