X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-context.c;h=11abcd4802ccacc879156163aa6b0b893858c511;hb=4776245dfb0ca70058881bc2059dc992581d041b;hp=81f21ff466fc4c9962d9a9083e6c04de3536c2aa;hpb=766876ed2e18e7ab281871b890e4a2003006ad20;p=src%2Fapp-framework-binder.git diff --git a/src/afb-context.c b/src/afb-context.c index 81f21ff4..11abcd48 100644 --- a/src/afb-context.c +++ b/src/afb-context.c @@ -163,9 +163,9 @@ int afb_context_check_loa(struct afb_context *context, unsigned loa) return afb_context_get_loa(context) >= loa; } -static inline void *loa_key(struct afb_context *context) +static inline const void *loa_key(struct afb_context *context) { - return (void*)(1+(intptr_t)(context->api_key)); + return (const void*)(1+(intptr_t)(context->api_key)); } static inline void *loa2ptr(unsigned loa)