From: Lars Op den Kamp Date: Tue, 27 Dec 2011 20:14:52 +0000 (+0100) Subject: cec: fix win32 build X-Git-Tag: upstream/2.2.0~1^2~43^2~10 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;ds=inline;h=7619faadc132c3586abd5865fadd3b7296d6555f;hp=a3ffc068ae63ee4fd655ebed4016dd055a7025e0;p=deb_libcec.git cec: fix win32 build --- diff --git a/src/lib/CECProcessor.cpp b/src/lib/CECProcessor.cpp index dc094ac..7afafaf 100644 --- a/src/lib/CECProcessor.cpp +++ b/src/lib/CECProcessor.cpp @@ -616,7 +616,7 @@ CCECBusDevice *CCECProcessor::GetDeviceByType(cec_device_type type) const { CCECBusDevice *device = NULL; - for (unsigned int iPtr = 0; iPtr < 16; iPtr++) + for (uint8_t iPtr = 0; iPtr < 16; iPtr++) { if (m_busDevices[iPtr]->m_type == type && m_logicalAddresses[iPtr]) { diff --git a/src/lib/implementations/SLCommandHandler.cpp b/src/lib/implementations/SLCommandHandler.cpp index 1186d56..d0c87d6 100644 --- a/src/lib/implementations/SLCommandHandler.cpp +++ b/src/lib/implementations/SLCommandHandler.cpp @@ -138,7 +138,6 @@ void CSLCommandHandler::HandleVendorCommandPowerOn(const cec_command &command) void CSLCommandHandler::HandleVendorCommandSLConnect(const cec_command &command) { - CCECBusDevice *primary = m_processor->GetPrimaryDevice(); m_bSLEnabled = true; m_processor->m_busDevices[command.initiator]->SetActiveSource(); m_processor->m_busDevices[command.destination]->TransmitActiveSource();