Commit 108b16e8 authored by Niels Möller's avatar Niels Möller

(open_ports): Cast second argument to bind to struct

sockaddr *.

Rev: src/lshd.c:1.176
parent 6145fc91
......@@ -405,7 +405,7 @@ open_ports(struct lshd_context *ctx, struct resource_list *resources,
sin.sin_addr.s_addr = htonl(INADDR_LOOPBACK);
sin.sin_port = port_number;
if (bind(s, &sin, sizeof(sin)) < 0)
if (bind(s, (struct sockaddr *) &sin, sizeof(sin)) < 0)
{
werror("bind failed: %e\n", errno);
return 0;
......
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