diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-05-22 12:42:09 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2008-05-22 12:42:09 +0000 |
commit | 58f28617b8c6ca02889f8d116c9a7cd31f7a22a1 (patch) | |
tree | 8b82c6ee1187c740083b5a4bb378526842110df8 /libssh/server.c | |
parent | 8b9841dd5714879b27ecb4532dfbbfe08e3b718d (diff) | |
download | libssh-58f28617b8c6ca02889f8d116c9a7cd31f7a22a1.tar.gz libssh-58f28617b8c6ca02889f8d116c9a7cd31f7a22a1.tar.xz libssh-58f28617b8c6ca02889f8d116c9a7cd31f7a22a1.zip |
some changes so it compiles better under windows
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@159 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/server.c')
-rw-r--r-- | libssh/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/server.c b/libssh/server.c index cbc6eea8..ee9f6d4a 100644 --- a/libssh/server.c +++ b/libssh/server.c @@ -68,7 +68,7 @@ static socket_t bind_socket(SSH_BIND *ssh_bind,char *hostname, int port) { memcpy(&myaddr.sin_addr,hp->h_addr,hp->h_length); myaddr.sin_family=hp->h_addrtype; myaddr.sin_port = htons(port); - setsockopt(s, SOL_SOCKET, SO_REUSEADDR, &opt, sizeof(opt)); + setsockopt(s, SOL_SOCKET, SO_REUSEADDR, (char *)&opt, sizeof(opt)); if (bind(s, (struct sockaddr *) &myaddr, sizeof(myaddr)) < 0) { ssh_set_error(ssh_bind,SSH_FATAL,"Binding to %s:%d : %s",hostname,port, strerror(errno)); |