summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2015-09-12 12:35:59 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-09-12 12:35:59 +0200
commitc6d8af579cffa9662ed1ea9e6096cccec821c6a1 (patch)
tree87cb55f3f880aab8d0f69c35abfe8739229c0ef3
parent90ae149104ee0f55309f8fc10fecedb7b2aef472 (diff)
Fix build warning
* pflocal/sock.h (sock_bind): Move declaration.
-rw-r--r--pflocal/sock.h6
1 files changed, 3 insertions, 3 deletions
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);