1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-02 03:29:02 +00:00

Fixed small format specifier error that caused a compiler warning

This commit is contained in:
luis
2010-06-22 17:47:32 +00:00
parent da126c8b78
commit c7be757035

View File

@@ -229,7 +229,7 @@ int TargetGroup::parse_expr(const char * const target_expr, int af) {
}
if (resolvedaddrs.size() > 1 && o.verbose > 1)
error("Warning: Hostname %s resolves to %d IPs. Using %s.", target_net, resolvedaddrs.size(), inet_ntop_ez(&ss, sslen));
error("Warning: Hostname %s resolves to %lu IPs. Using %s.", target_net, (unsigned long)resolvedaddrs.size(), inet_ntop_ez(&ss, sslen));
if (netmask) {
struct sockaddr_in *sin = (struct sockaddr_in *) &ss;