From ca9b4d0e8bc9274dff3a47ffe4eb552645ed7a06 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Tue, 5 Feb 2019 20:03:36 +0000 Subject: [PATCH] Fix compile issues. --- P25Gateway/P25Gateway.cpp | 2 +- P25Gateway/Voice.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/P25Gateway/P25Gateway.cpp b/P25Gateway/P25Gateway.cpp index f05878d..b9e9c16 100644 --- a/P25Gateway/P25Gateway.cpp +++ b/P25Gateway/P25Gateway.cpp @@ -352,7 +352,7 @@ void CP25Gateway::run() if (voice != NULL) { unsigned int length = voice->read(buffer); if (length > 0U) - localNetwork.write(buffer, length, rptAddr, rptPort); + localNetwork.writeData(buffer, length, rptAddr, rptPort); } unsigned int ms = stopWatch.elapsed(); diff --git a/P25Gateway/Voice.cpp b/P25Gateway/Voice.cpp index 0b41c42..a44ee8d 100644 --- a/P25Gateway/Voice.cpp +++ b/P25Gateway/Voice.cpp @@ -226,7 +226,7 @@ void CVoice::createVoice(unsigned int tg, const std::vector& words) for (std::vector::const_iterator it = words.begin(); it != words.end(); ++it) { if (m_positions.count(*it) > 0U) { CPositions* position = m_positions.at(*it); - m_voiceeLength += position->m_length; + m_voiceLength += position->m_length; } else { LogWarning("Unable to find character/phrase \"%s\" in the index", (*it).c_str()); }