From 3195434fedd068d9a4b3899532e22ccf36f2e2c0 Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 14 Oct 2007 15:12:49 +0000 Subject: [PATCH] a minor change to that last rev: the setsockopt() calls in Nmap cast the option values to (const char *) --- tcpip.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcpip.cc b/tcpip.cc index 3ce19adfb..f9634d976 100644 --- a/tcpip.cc +++ b/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 }