diff options
author | lanfer <lanfer@9697cf00-7f2a-4e1b-af3c-314b8e4b499e> | 2000-08-23 13:51:29 +0000 |
---|---|---|
committer | lanfer <lanfer@9697cf00-7f2a-4e1b-af3c-314b8e4b499e> | 2000-08-23 13:51:29 +0000 |
commit | f3b11663aadc3f0df62711ba3587fd2fe877dc9b (patch) | |
tree | 291e7acd3469d14eea723fd4a5cd02ee09e01d6e | |
parent | a88e897343ddaad5938d0787ca7309946767ae20 (diff) |
bind(sock,(struct sockaddr *)&sin, ... sock address structure has to be casted
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/Socket/trunk@11 9697cf00-7f2a-4e1b-af3c-314b8e4b499e
-rw-r--r-- | src/Utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Utils.c b/src/Utils.c index 4b4426b..7ba5d02 100644 --- a/src/Utils.c +++ b/src/Utils.c @@ -163,7 +163,7 @@ int Socket_UDPOpenClientSock(const char *hostname,int port) fprintf(stderr,"couldn\'t allocate socket on host %s: port %u\n",hostname,port); return sock; } - if(bind(sock,&sin,sizeof(sin)) <0) + if(bind(sock,(struct sockaddr *)&sin,sizeof(sin)) <0) { close(sock); perror("client: bind failed"); |