mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-11 20:34:47 +00:00
Changed: Use toString for formatting
This commit is contained in:
parent
3884d58b72
commit
88507cf9ce
1 changed files with 2 additions and 2 deletions
|
@ -721,7 +721,7 @@ std::vector<CInetAddress> CInetAddress::localAddresses()
|
||||||
if (status)
|
if (status)
|
||||||
{
|
{
|
||||||
// will come here if the local hostname (/etc/hostname in Linux) is not the real name
|
// will come here if the local hostname (/etc/hostname in Linux) is not the real name
|
||||||
throw ESocket( (string("Hostname resolution failed for ")+string(localhost)).c_str() );
|
throw ESocket( toString("Hostname resolution failed for %s", localhost).c_str() );
|
||||||
}
|
}
|
||||||
|
|
||||||
struct addrinfo *p = res;
|
struct addrinfo *p = res;
|
||||||
|
@ -767,7 +767,7 @@ std::vector<CInetAddress> CInetAddress::localAddresses()
|
||||||
|
|
||||||
if(vect.empty())
|
if(vect.empty())
|
||||||
{
|
{
|
||||||
throw ESocket( (string("No network card detected for ")+string(localhost)).c_str() );
|
throw ESocket(toString("No network card detected for %s", localhost).c_str() );
|
||||||
}
|
}
|
||||||
|
|
||||||
return vect;
|
return vect;
|
||||||
|
|
Loading…
Reference in a new issue