summaryrefslogtreecommitdiffstats
path: root/bindings/radio
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-07-27 17:44:27 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-07-27 17:44:27 +0200
commitbbddc1e584dd01b60042f622f8cecfc69361020b (patch)
tree35b8122ddb62325ee519ed45e3658cbf13e68bca /bindings/radio
parent1ea6bd0f466a10d29f12801aa35fb6d2b30443a1 (diff)
fix unexpected ending spaces
Change-Id: Ie7ebccb02b42e91457df3bdbf2a6f037b248400e Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'bindings/radio')
-rw-r--r--bindings/radio/radio-api.c6
-rw-r--r--bindings/radio/radio-rtlsdr.c8
2 files changed, 7 insertions, 7 deletions
diff --git a/bindings/radio/radio-api.c b/bindings/radio/radio-api.c
index 0ed60e1c..7dd22b69 100644
--- a/bindings/radio/radio-api.c
+++ b/bindings/radio/radio-api.c
@@ -38,7 +38,7 @@ static pluginHandleT *the_radio = NULL;
/* detect new radio devices */
void updateRadioDevList(pluginHandleT *handle) {
- int idx;
+ int idx;
// loop on existing radio if any
for (idx = 0; idx < _radio_dev_count(); idx++) {
@@ -305,7 +305,7 @@ static void mute (struct afb_req request) { /* AFB_SESSION_CHECK */
json_object_object_add (jresp, "mute", json_object_new_string ("off"));
}
- afb_req_success (request, jresp, "Radio - Mute set");
+ afb_req_success (request, jresp, "Radio - Mute set");
}
static void play (struct afb_req request) { /* AFB_SESSION_CHECK */
@@ -318,7 +318,7 @@ static void play (struct afb_req request) { /* AFB_SESSION_CHECK */
afb_req_fail (request, "failed", "you must call 'init' first");
return;
}
-
+
/* no "?value=" parameter : return current state */
if (!value || !ctx->radio) {
ctx->is_playing ?
diff --git a/bindings/radio/radio-rtlsdr.c b/bindings/radio/radio-rtlsdr.c
index 7f76306e..00ceba63 100644
--- a/bindings/radio/radio-rtlsdr.c
+++ b/bindings/radio/radio-rtlsdr.c
@@ -37,13 +37,13 @@ static struct dev_ctx **dev_ctx = NULL;
/* Radio initialization should be done only when user start the radio and not at plugin initialization
Making this call too early would impose to restart the binder to detect a radio */
unsigned char _radio_on (unsigned int num, radioCtxHandleT *ctx) {
-
+
if (num >= _radio_dev_count())
return 0;
-
+
if (init_dev_count < _radio_dev_count()) {
init_dev_count = _radio_dev_count();
- dev_ctx = (dev_ctx_T**) realloc (dev_ctx, init_dev_count * sizeof(dev_ctx_T*));
+ dev_ctx = (dev_ctx_T**) realloc (dev_ctx, init_dev_count * sizeof(dev_ctx_T*));
}
dev_ctx[num] = (dev_ctx_T*) malloc (sizeof(dev_ctx_T));
@@ -69,7 +69,7 @@ void _radio_off (unsigned int num) {
_radio_dev_free (dev_ctx[num]);
free (dev_ctx[num]);
}
-
+
/* free(dev_ctx); */
}