af-binder: Fix const issue in afb-auth.h 95/10195/2
authorJosé Bollo <jose.bollo@iot.bzh>
Thu, 13 Jul 2017 10:02:45 +0000 (12:02 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Mon, 17 Jul 2017 09:13:34 +0000 (09:13 +0000)
commitbfc447d468f749d9161996f917ba3567ae063de4
treed6b53d7336ddab69f5718a7b00ce2551fe69ade2
parent5fbfb7a420928da5f9b9379ec1a3e8b31e398e54
af-binder: Fix const issue in afb-auth.h

The fields type and loa were declared as const.
This worked well for C compilers that are allowing
to initialize constant fixed structures.

But when compiling with C++, it is no more easy
to create initialized structure explicitely.
In C++, the solution is to use C++14 constexpr functions.
But for using these function, const must be removed.

Bug-AGL: SPEC-741

Change-Id: Ia1b156b174166821a0246e603171193757e67ebe
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/10195
Reviewed-by: Matt Ranostay <matt.ranostay@konsulko.com>
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Tested-by: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
ci-image-build: Jenkins Job builder account <agl-jobbuilder@automotivelinux.org>
Reviewed-by: Changhyeok Bae <changhyeok.bae@gmail.com>
meta-app-framework/recipes-core/af-binder/af-binder_1.0.bb