From: bobo1on1 Date: Fri, 11 Nov 2011 01:02:48 +0000 (+0100) Subject: removed: comments about default parameters X-Git-Tag: upstream/2.2.0~1^2~56 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=9149904297bdc2fdb75f2811d3ad9d4b8e33ce34;p=deb_libcec.git removed: comments about default parameters 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 --- diff --git a/src/lib/LibCECC.cpp b/src/lib/LibCECC.cpp index 3dc5b69..c95741c 100644 --- a/src/lib/LibCECC.cpp +++ b/src/lib/LibCECC.cpp @@ -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;