1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Remove extra const qualifiers.

Some function declared parameters like this:
	int f(const char * const s)
Where appropriate, I changed to
	int f(const char *s)

The second const is a qualifier on the pointer itself; i.e., the value
of s may not be changed (may not be made to point to anything else)
within the function. This is probably not what was intended. The first
const is what prevents modifying things referenced through s.
This commit is contained in:
david
2011-10-13 20:52:03 +00:00
parent d4941d944c
commit 6987814beb
5 changed files with 6 additions and 6 deletions

View File

@@ -269,7 +269,7 @@ struct addrinfo *resolve_all(char *hostname, int pf);
a route is found, true is returned and rnfo is filled in with all
of the routing details. This function takes into account -S and -e
options set by user (o.spoofsource, o.device) */
int nmap_route_dst(const struct sockaddr_storage * const dst, struct route_nfo *rnfo);
int nmap_route_dst(const struct sockaddr_storage *dst, struct route_nfo *rnfo);
/* Determines what interface packets destined to 'dest' should be
routed through. It can also discover the appropriate next hop (if