Commit 1a24ef3f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

https: missing cast

parent 680ced41
......@@ -115,7 +115,7 @@ static int server_socket(unsigned *port)
socklen_t addrlen = sizeof (addr);
if (bind(fd, (struct sockaddr *)&addr, addrlen)
|| getsockname(fd, &addr, &addrlen))
|| getsockname(fd, (struct sockaddr *)&addr, &addrlen))
{
close(fd);
return -1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment