From 49d8fa1058aaf23c29e074b2314492ae40d2f557 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Tue, 21 Feb 2017 12:05:07 +0000 Subject: Types change: big pass on libstddjb and libunixonacid libdatastruct still missing, library still not functional --- src/libstddjb/socket_bind6r.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/libstddjb/socket_bind6r.c') diff --git a/src/libstddjb/socket_bind6r.c b/src/libstddjb/socket_bind6r.c index 6bf5e0d..de24c61 100644 --- a/src/libstddjb/socket_bind6r.c +++ b/src/libstddjb/socket_bind6r.c @@ -2,12 +2,12 @@ #include #include -#include +#include #include -int socket_bind6_reuse (int s, char const *ip6, uint16 port) +int socket_bind6_reuse (int s, char const *ip6, uint16_t port) { - unsigned int opt = 1 ; + static unsigned int const opt = 1 ; setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof opt) ; return socket_bind6(s, ip6, port) ; } -- cgit v1.2.3