Change-Id: Iba2c95c5bc9f7b1b0b07f98b69290ea014f82d20
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
#define APPNAME "firefox"
// ----- Globals -----
#define APPNAME "firefox"
// ----- Globals -----
-DB* database;
-char database_file[MAX_PATH];
+static DB* database;
+static char database_file[MAX_PATH];
// ----- Binding's declarations -----
// ----- Binding's declarations -----
-int ll_database_binding_init();
-void verb_insert(struct afb_req req);
-void verb_update(struct afb_req req);
-void verb_delete(struct afb_req req);
-void verb_read(struct afb_req req);
+static int ll_database_binding_init();
+static void verb_insert(struct afb_req req);
+static void verb_update(struct afb_req req);
+static void verb_delete(struct afb_req req);
+static void verb_read(struct afb_req req);
// ----- Binding's implementations -----
// ----- Binding's implementations -----
* @brief Initialize the binding.
* @return Exit code, zero if success.
*/
* @brief Initialize the binding.
* @return Exit code, zero if success.
*/
-int ll_database_binding_init()
+static int ll_database_binding_init()
{
struct passwd pwd;
struct passwd* result;
{
struct passwd pwd;
struct passwd* result;
* @brief Handle the @c read verb.
* @param[in] req The query.
*/
* @brief Handle the @c read verb.
* @param[in] req The query.
*/
-void verb_insert(struct afb_req req)
+static void verb_insert(struct afb_req req)
-void verb_update(struct afb_req req)
+static void verb_update(struct afb_req req)
-void verb_delete(struct afb_req req)
+static void verb_delete(struct afb_req req)
-void verb_read(struct afb_req req)
+static void verb_read(struct afb_req req)