summaryrefslogtreecommitdiffstats
path: root/plugins/radio
diff options
context:
space:
mode:
authorManuel Bachmann <manuel.bachmann@iot.bzh>2015-12-28 14:39:14 +0100
committerManuel Bachmann <manuel.bachmann@iot.bzh>2015-12-28 14:39:14 +0100
commit7181ede7add4eb3f5a92f5f8c9fd9cc8fdf6c659 (patch)
tree78c5eda900bbe4505070ee163b79f23db13876fb /plugins/radio
parent06d422d1de5c505366f6a029d8af85548c2b646f (diff)
Fix plugin loading logic, radio plugin loading
We should not free() a dlopened pointer. Internal plugin handle was renamed, adapt radio plugin. Signed-off-by: Manuel Bachmann <manuel.bachmann@iot.bzh>
Diffstat (limited to 'plugins/radio')
-rw-r--r--plugins/radio/radio-api.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/radio/radio-api.c b/plugins/radio/radio-api.c
index 09fbcb55..1cbf3149 100644
--- a/plugins/radio/radio-api.c
+++ b/plugins/radio/radio-api.c
@@ -140,7 +140,7 @@ STATIC json_object* init (AFB_request *request) { /* AFB_SESSION_CREATE */
STATIC json_object* power (AFB_request *request) { /* AFB_SESSION_CHECK */
- pluginHandleT *handle = (pluginHandleT*)request->plugin;
+ pluginHandleT *handle = (pluginHandleT*)request->handle;
radioCtxHandleT *ctx = (radioCtxHandleT*)request->context;
const char *value = getQueryValue (request, "value");
json_object *jresp;