diff options
author | Mattias Andrée <maandree@kth.se> | 2016-07-15 23:00:27 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2016-07-15 23:00:27 +0200 |
commit | 367ab5c61e7704a9923074ca0347e7aa0a0f1b55 (patch) | |
tree | 4fe85009564ac4f02bcc38ea92819faf1d4ef900 | |
parent | m (diff) | |
download | coopgammad-367ab5c61e7704a9923074ca0347e7aa0a0f1b55.tar.gz coopgammad-367ab5c61e7704a9923074ca0347e7aa0a0f1b55.tar.bz2 coopgammad-367ab5c61e7704a9923074ca0347e7aa0a0f1b55.tar.xz |
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | src/coopgammad.c | 2 |
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; |