]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
change struct to quiet compiler warnings
authorAlan T. DeKok <aland@freeradius.org>
Sun, 15 Feb 2026 13:30:27 +0000 (08:30 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 15 Feb 2026 15:51:35 +0000 (10:51 -0500)
src/lib/util/udpfromto.c

index 418767ca54e734e62a196a62d9ee8d1a8e165730..216ae250e9923b5c36d309991a96435ff6e5cd27 100644 (file)
@@ -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;