aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-03-16 22:02:24 +0100
committerJosé Bollo <jose.bollo@iot.bzh>2016-03-17 11:36:44 +0100
commit1309721790b7b2aeb29658b8907c99fcaabf85a5 (patch)
treedd3897316af202184fc473be6dd0246e0ff41ad9 /plugins
parent2f5957984835ffc7d4f03bb0094a93c575e3eb17 (diff)
removed private api and fix some few warnings
Change-Id: I8d4427c94ca2b88a4f1add70b065d0b6d0865286 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/media/media-api.c2
-rw-r--r--plugins/radio/radio-api.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/plugins/media/media-api.c b/plugins/media/media-api.c
index 308745d5..92e195a9 100644
--- a/plugins/media/media-api.c
+++ b/plugins/media/media-api.c
@@ -103,6 +103,8 @@ STATIC json_object* selecting (AFB_request *request) { /* AFB_SESSION_CHECK */
jresp = json_object_new_object();
json_object_object_add (jresp, "index", json_object_new_string (value));
}
+ else
+ jresp = NULL;
return jresp;
}
diff --git a/plugins/radio/radio-api.c b/plugins/radio/radio-api.c
index 919a875f..ea17eb51 100644
--- a/plugins/radio/radio-api.c
+++ b/plugins/radio/radio-api.c
@@ -176,6 +176,8 @@ STATIC json_object* power (AFB_request *request) { /* AFB_SESSION_CHECK */
jresp = json_object_new_object();
json_object_object_add (jresp, "power", json_object_new_string ("off"));
}
+ else
+ jresp = NULL;
return jresp;
}