1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 06:59:01 +00:00

a minor change to that last rev: the setsockopt() calls in Nmap cast the option values to (const char *)

This commit is contained in:
kris
2007-10-14 15:12:49 +00:00
parent dfc9eba4db
commit 3195434fed

View File

@@ -167,7 +167,7 @@ void set_ttl(int sd, int ttl)
if (sd == -1) if (sd == -1)
return; return;
setsockopt(sd, IPPROTO_IP, IP_TTL, &ttl, sizeof ttl); setsockopt(sd, IPPROTO_IP, IP_TTL, (const char *) &ttl, sizeof ttl);
#endif #endif
} }