mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +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:
parent
dfc9eba4db
commit
3195434fed
1 changed files with 1 additions and 1 deletions
2
tcpip.cc
2
tcpip.cc
|
|
@ -167,7 +167,7 @@ void set_ttl(int sd, int ttl)
|
|||
if (sd == -1)
|
||||
return;
|
||||
|
||||
setsockopt(sd, IPPROTO_IP, IP_TTL, &ttl, sizeof ttl);
|
||||
setsockopt(sd, IPPROTO_IP, IP_TTL, (const char *) &ttl, sizeof ttl);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue