Remove some unnecessary casts.
[dragonfly.git] / sbin / ip6fw / ip6fw.c
index b344302..76a870f 100644 (file)
@@ -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