diff --git a/src/server/server.c b/src/server/server.c index 99bdc35ec..f3ae34ebe 100644 --- a/src/server/server.c +++ b/src/server/server.c @@ -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) {