cec: fix win32 build
authorLars Op den Kamp <lars@opdenkamp.eu>
Tue, 27 Dec 2011 20:14:52 +0000 (21:14 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Tue, 27 Dec 2011 20:14:52 +0000 (21:14 +0100)
src/lib/CECProcessor.cpp
src/lib/implementations/SLCommandHandler.cpp

index dc094ac4f9c8079ff11c40c85ca49dd1840a1a32..7afafafd623561c9efd61255f4823cc946e6747d 100644 (file)
@@ -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])
     {
index 1186d5674a3c02a27b43460c2356431b8c19b123..d0c87d69fa8382a1f026a23579667192d9418e92 100644 (file)
@@ -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();