mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-06 06:43:53 +00:00
convert bindaddr from const char * to std::string
This commit is contained in:
parent
c214bbfd89
commit
0a9ce3e450
5 changed files with 10 additions and 10 deletions
|
|
@ -44,10 +44,10 @@ CNetwork::~CNetwork()
|
|||
delete[] m_status;
|
||||
}
|
||||
|
||||
bool CNetwork::open(const char* bindaddr)
|
||||
bool CNetwork::open(const std::string& bindaddr)
|
||||
{
|
||||
if (strlen(bindaddr) > 0)
|
||||
::fprintf(stdout, "Opening YSF network connection on address %s\n", bindaddr);
|
||||
if (bindaddr.length() > 0)
|
||||
::fprintf(stdout, "Opening YSF network connection on address %s\n", bindaddr.c_str());
|
||||
else
|
||||
::fprintf(stdout, "Opening YSF network connection on all interfaces\n");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue