]> git.saurik.com Git - apple/ipsec.git/blobdiff - ipsec-tools/Common/pfkey_dump.c
ipsec-164.9.tar.gz
[apple/ipsec.git] / ipsec-tools / Common / pfkey_dump.c
index cf40fe99abdd060dd87b6f5781bd3a7f24bfd981..6ee8a4b12e01a284c9687e4400fd5f01763bc147 100644 (file)
@@ -499,7 +499,7 @@ pfkey_spdump1(m, withports)
                switch (sa->sa_family) {
                case AF_INET:
                case AF_INET6:
-                       if (getnameinfo(sa, (socklen_t)sysdep_sa_len(sa), NULL,
+                       if (getnameinfo(sa, (socklen_t)sysdep_sa_len((struct sockaddr *)sa), NULL,
                            0, pbuf, sizeof(pbuf), NI_NUMERICSERV) != 0)
                                sport = 0;      /*XXX*/
                        else
@@ -520,7 +520,7 @@ pfkey_spdump1(m, withports)
                switch (sa->sa_family) {
                case AF_INET:
                case AF_INET6:
-                       if (getnameinfo(sa, (socklen_t)sysdep_sa_len(sa), NULL,
+                       if (getnameinfo(sa, (socklen_t)sysdep_sa_len((struct sockaddr *)sa), NULL,
                            0, pbuf, sizeof(pbuf), NI_NUMERICSERV) != 0)
                                dport = 0;      /*XXX*/
                        else