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