removed private api and fix some few warnings
[src/app-framework-binder.git] / plugins / radio / radio-api.c
index d6855fe..ea17eb5 100644 (file)
@@ -17,7 +17,6 @@
  */
 
 #include "radio-api.h"
-#include "radio-rtlsdr.h"
 
 /* ********************************************************
 
@@ -177,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;
 }