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

Make the argument to Target::setTargetName const.

This commit is contained in:
david
2009-10-26 23:12:20 +00:00
parent d837d751bc
commit e33810abae
2 changed files with 2 additions and 2 deletions

View File

@@ -307,7 +307,7 @@ void Target::setHostName(char *name) {
}
}
void Target::setTargetName(char *name) {
void Target::setTargetName(const char *name) {
if (targetname) {
free(targetname);
targetname = NULL;

View File

@@ -205,7 +205,7 @@ class Target {
away when you setTargetSockAddr(), so make sure you do these in proper
order
*/
void setTargetName(char *name);
void setTargetName(const char *name);
/* If the host is directly connected on a network, set and retrieve
that information here. directlyConnected() will abort if it hasn't