aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/Utils.c2
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");