aboutsummaryrefslogtreecommitdiffstats
path: root/src/afb-context.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-09-19 14:39:47 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-09 14:08:29 +0200
commit4776245dfb0ca70058881bc2059dc992581d041b (patch)
tree8ea10effee5153499d4868cfc4ad8a5242bbf7de /src/afb-context.c
parent766876ed2e18e7ab281871b890e4a2003006ad20 (diff)
afb-context: add const qualifier for api_key
Change-Id: I138d70698342cc2350d4f9098bcf5c486d16faba Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'src/afb-context.c')
-rw-r--r--src/afb-context.c4
1 files changed, 2 insertions, 2 deletions
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)