From 9149904297bdc2fdb75f2811d3ad9d4b8e33ce34 Mon Sep 17 00:00:00 2001 From: bobo1on1 Date: Fri, 11 Nov 2011 02:02:48 +0100 Subject: [PATCH] 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 --- src/lib/LibCECC.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1