Fix compile issues.

This commit is contained in:
Jonathan Naylor 2019-02-05 20:03:36 +00:00
parent 698642c7b6
commit ca9b4d0e8b
2 changed files with 2 additions and 2 deletions

View File

@ -352,7 +352,7 @@ void CP25Gateway::run()
if (voice != NULL) { if (voice != NULL) {
unsigned int length = voice->read(buffer); unsigned int length = voice->read(buffer);
if (length > 0U) if (length > 0U)
localNetwork.write(buffer, length, rptAddr, rptPort); localNetwork.writeData(buffer, length, rptAddr, rptPort);
} }
unsigned int ms = stopWatch.elapsed(); unsigned int ms = stopWatch.elapsed();

View File

@ -226,7 +226,7 @@ void CVoice::createVoice(unsigned int tg, const std::vector<std::string>& words)
for (std::vector<std::string>::const_iterator it = words.begin(); it != words.end(); ++it) { for (std::vector<std::string>::const_iterator it = words.begin(); it != words.end(); ++it) {
if (m_positions.count(*it) > 0U) { if (m_positions.count(*it) > 0U) {
CPositions* position = m_positions.at(*it); CPositions* position = m_positions.at(*it);
m_voiceeLength += position->m_length; m_voiceLength += position->m_length;
} else { } else {
LogWarning("Unable to find character/phrase \"%s\" in the index", (*it).c_str()); LogWarning("Unable to find character/phrase \"%s\" in the index", (*it).c_str());
} }