Merge pull request #102 from gnu-mcu-eclipse/riscv-sockaddr
server.c: fix clang warning
This commit is contained in:
commit
35a0b519d9
|
@ -302,7 +302,7 @@ int add_service(char *name,
|
|||
|
||||
struct sockaddr_in addr_in;
|
||||
socklen_t addr_in_size = sizeof(addr_in);
|
||||
getsockname(c->fd, &addr_in, &addr_in_size);
|
||||
getsockname(c->fd, (struct sockaddr *)&addr_in, &addr_in_size);
|
||||
LOG_INFO("Listening on port %d for %s connections",
|
||||
ntohs(addr_in.sin_port), name);
|
||||
} else if (c->type == CONNECTION_STDINOUT) {
|
||||
|
|
Loading…
Reference in New Issue