aboutsummaryrefslogtreecommitdiffstats
path: root/src/coopgammad.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/coopgammad.c')
-rw-r--r--src/coopgammad.c2
1 files changed, 1 insertions, 1 deletions
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;