From: kingosticks Date: Mon, 9 Jun 2014 21:48:22 +0000 (+0100) Subject: Added missing const for cec_set_configuration argument X-Git-Tag: upstream/2.2.0~1^2~1^2~4^2 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=0303a29df2d5c7db34ef59ad297f04d4348d9401;p=deb_libcec.git Added missing const for cec_set_configuration argument Method now matches prototype and is correctly exported for C. --- diff --git a/src/lib/LibCECC.cpp b/src/lib/LibCECC.cpp index fc5c9c2..ecf4565 100644 --- a/src/lib/LibCECC.cpp +++ b/src/lib/LibCECC.cpp @@ -346,7 +346,7 @@ int cec_persist_configuration(libcec_configuration *configuration) return cec_parser ? (cec_parser->PersistConfiguration(configuration) ? 1 : 0) : -1; } -int cec_set_configuration(libcec_configuration *configuration) +int cec_set_configuration(const libcec_configuration *configuration) { return cec_parser ? (cec_parser->SetConfiguration(configuration) ? 1 : 0) : -1; }