From: Alan T. DeKok Date: Sun, 15 Feb 2026 13:30:27 +0000 (-0500) Subject: change struct to quiet compiler warnings X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4aa36ae232e6f5247ce5f730b2a11a6767526ef9;p=thirdparty%2Ffreeradius-server.git change struct to quiet compiler warnings --- diff --git a/src/lib/util/udpfromto.c b/src/lib/util/udpfromto.c index 418767ca54e..216ae250e99 100644 --- a/src/lib/util/udpfromto.c +++ b/src/lib/util/udpfromto.c @@ -446,11 +446,11 @@ int sendfromto(int fd, void *buf, size_t len, int flags, struct sockaddr_storage bound; socklen_t bound_len = sizeof(bound); - if (getsockname(fd, &bound, &bound_len) < 0) { + if (getsockname(fd, (struct sockaddr *) &bound, &bound_len) < 0) { return -1; } - switch (bound.sa_family) { + switch (bound.ss_family) { case AF_INET: if (((struct sockaddr_in *) &bound)->sin_addr.s_addr != INADDR_ANY) { from = NULL;