X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=src%2Flib%2FAdapterDetection.cpp;h=f06809975abc49300558e06780b4445633f6dd6c;hb=1a87cacc08dda28c8f4c42a20bd7fdbe12364bf6;hp=b304e43561d2eb5c0961a425b140b35bda88cd6a;hpb=42c025634f2efe8989a1c1321cf65274f1093f36;p=deb_libcec.git diff --git a/src/lib/AdapterDetection.cpp b/src/lib/AdapterDetection.cpp index b304e43..f068099 100644 --- a/src/lib/AdapterDetection.cpp +++ b/src/lib/AdapterDetection.cpp @@ -50,8 +50,10 @@ static GUID USB_RAW_GUID = { 0xA5DCBF10, 0x6530, 0x11D2, { 0x90, 0x1F, 0x00, 0xC0, 0x4F, 0xB9, 0x51, 0xED } }; #elif defined(HAVE_LIBUDEV) #include -#include #include +extern "C" { +#include +} #endif #define CEC_VID 0x2548 @@ -322,5 +324,7 @@ uint8_t CAdapterDetection::FindAdapters(cec_adapter *deviceList, uint8_t iBufSiz } #endif + iBufSize = 0; /* silence "unused" warning on linux/osx */ + return iFound; }