removed: comments about default parameters
authorbobo1on1 <bob-nospam-@xbmc.org>
Fri, 11 Nov 2011 01:02:48 +0000 (02:02 +0100)
committerbobo1on1 <bob-nospam-@xbmc.org>
Fri, 11 Nov 2011 01:04:42 +0000 (02:04 +0100)
fixed: iPhysicalAddress was uint16_t in the prototype and uint8_t in the function definition, apart from this being wrong, it also caused cec_init to be linked as a C++ function even though it's inside an extern "C" {} block

src/lib/LibCECC.cpp

index 3dc5b697cf61ff0cd1d910bd3416ef4e01fee9a6..c95741c2356d930be974fe677db0636d5aa6fbea 100644 (file)
@@ -42,7 +42,7 @@ using namespace std;
 //@{
 ICECAdapter *cec_parser;
 
-int cec_init(const char *strDeviceName, cec_logical_address iLogicalAddress /* = CECDEVICE_PLAYBACKDEVICE1 */, uint8_t iPhysicalAddress /* = CEC_DEFAULT_PHYSICAL_ADDRESS */)
+int cec_init(const char *strDeviceName, cec_logical_address iLogicalAddress, uint16_t iPhysicalAddress)
 {
   cec_parser = (ICECAdapter *) CECCreate(strDeviceName, iLogicalAddress, iPhysicalAddress);
   return (cec_parser != NULL) ? 1 : 0;