cec: fixed compilation warnings
authorLars Op den Kamp <lars@opdenkamp.eu>
Thu, 2 Feb 2012 13:46:16 +0000 (14:46 +0100)
committerLars Op den Kamp <lars@opdenkamp.eu>
Thu, 2 Feb 2012 13:46:16 +0000 (14:46 +0100)
src/lib/CECProcessor.h
src/testclient/main.cpp

index c6d278f09a5eb2c14cf3762559c0b97e3a76f03d..3e98cc0abc439d694faf4e413f52ed93db6bdaad 100644 (file)
@@ -40,7 +40,7 @@
 namespace CEC
 {
   class CLibCEC;
-  class IAdapterCommunication;
+  struct IAdapterCommunication;
   class CCECBusDevice;
 
   class CCECProcessor : public PLATFORM::CThread, public IAdapterCommunicationCallback
index b324de214a408fe03678c94af0ceb06eed937fe6..cbdeddf7c8053714835f5427b40264353a9a8f12 100644 (file)
@@ -198,7 +198,7 @@ void ListDevices(ICECAdapter *parser)
   else
   {
     PrintToStdOut("Found devices: %d\n", iDevicesFound);
-    for (unsigned int iDevicePtr = 0; iDevicePtr < iDevicesFound; iDevicePtr++)
+    for (int8_t iDevicePtr = 0; iDevicePtr < iDevicesFound; iDevicePtr++)
       PrintToStdOut("device:        %d\npath:          %s\ncom port:      %s\n", iDevicePtr + 1, devices[iDevicePtr].path, devices[iDevicePtr].comm);
   }
 }