mirror of
https://github.com/oe7drt/YSFClients.git
synced 2026-04-07 15:24:00 +00:00
Fix network ports datatype (unsigned int -> unsigned short). UDPSocket: fix old bug using m_port instead of m_port[x].
This commit is contained in:
parent
c9660478c5
commit
fc76b0f4ab
39 changed files with 174 additions and 166 deletions
|
|
@ -137,7 +137,7 @@ bool CConf::read()
|
|||
m_logFileRotate = ::atoi(value) == 1;
|
||||
} else if (section == SECTION_NETWORK) {
|
||||
if (::strcmp(key, "Port") == 0)
|
||||
m_networkPort = (unsigned int)::atoi(value);
|
||||
m_networkPort = (unsigned short)::atoi(value);
|
||||
else if (::strcmp(key, "Debug") == 0)
|
||||
m_networkDebug = ::atoi(value) == 1;
|
||||
} else if (section == SECTION_BLOCKLIST) {
|
||||
|
|
@ -198,7 +198,7 @@ bool CConf::getLogFileRotate() const
|
|||
return m_logFileRotate;
|
||||
}
|
||||
|
||||
unsigned int CConf::getNetworkPort() const
|
||||
unsigned short CConf::getNetworkPort() const
|
||||
{
|
||||
return m_networkPort;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue