X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/blobdiff_plain/9ade59624b1a7903e0efe5676889693b0e4b04aa..15b85273287111e7f177850e47c2bd7a1f804ca1:/sbin/ip6fw/ip6fw.c diff --git a/sbin/ip6fw/ip6fw.c b/sbin/ip6fw/ip6fw.c index b3443027da..76a870f886 100644 --- a/sbin/ip6fw/ip6fw.c +++ b/sbin/ip6fw/ip6fw.c @@ -285,7 +285,7 @@ show_ip6fw(struct ip6_fw *chain) mb=mask_bits((u_char *)&chain->fw_smsk,sizeof(chain->fw_smsk)); if (mb==128 && do_resolv) { - he=gethostbyaddr((char *)&(chain->fw_src),sizeof(chain->fw_src),AF_INET6); + he=gethostbyaddr(&(chain->fw_src),sizeof(chain->fw_src),AF_INET6); if (he==NULL) { printf(inet_ntop(AF_INET6,&chain->fw_src,ntop_buf,sizeof(ntop_buf))); } else @@ -317,7 +317,7 @@ show_ip6fw(struct ip6_fw *chain) mb=mask_bits((u_char *)&chain->fw_dmsk,sizeof(chain->fw_dmsk)); if (mb==128 && do_resolv) { - he=gethostbyaddr((char *)&(chain->fw_dst),sizeof(chain->fw_dst),AF_INET6); + he=gethostbyaddr(&(chain->fw_dst),sizeof(chain->fw_dst),AF_INET6); if (he==NULL) { printf(inet_ntop(AF_INET6,&chain->fw_dst,ntop_buf,sizeof(ntop_buf))); } else