Merge pull request #102 from gnu-mcu-eclipse/riscv-sockaddr

server.c: fix clang warning
This commit is contained in:
Tim Newsome 2017-08-25 09:37:59 -07:00 committed by GitHub
commit 35a0b519d9
1 changed files with 1 additions and 1 deletions

View File

@ -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) {