From 367ab5c61e7704a9923074ca0347e7aa0a0f1b55 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 15 Jul 2016 23:00:27 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/coopgammad.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/coopgammad.c b/src/coopgammad.c index 407aa78..58f0165 100644 --- a/src/coopgammad.c +++ b/src/coopgammad.c @@ -709,7 +709,7 @@ static int initialise(int full, int preserve, int foreground, int keep_stderr, i goto fail; if (fchmod(socketfd, S_IRWXU) < 0) goto fail; - if (bind(socketfd, (struct sockaddr*)(&address), sizeof(address)) < 0) + if (bind(socketfd, (struct sockaddr*)(&address), (socklen_t)sizeof(address)) < 0) goto fail; if (listen(socketfd, SOMAXCONN) < 0) goto fail; -- cgit v1.2.3-70-g09d2