aboutsummaryrefslogtreecommitdiffstats
path: root/ll-database-binding/src/ll-database-binding.c
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-10-24 16:29:55 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-24 16:29:55 +0200
commit0a3fcbc86cf43d84b106dc5514daa50b264791ab (patch)
treef87194161df4fc9b35d0459ea919ef4ad3e43baa /ll-database-binding/src/ll-database-binding.c
parent571037e94bd01aafc7a17b8781e836d3fd9add22 (diff)
database: don't bother linker with locals
Change-Id: Iba2c95c5bc9f7b1b0b07f98b69290ea014f82d20 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'll-database-binding/src/ll-database-binding.c')
-rw-r--r--ll-database-binding/src/ll-database-binding.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/ll-database-binding/src/ll-database-binding.c b/ll-database-binding/src/ll-database-binding.c
index 896c76d..a78d070 100644
--- a/ll-database-binding/src/ll-database-binding.c
+++ b/ll-database-binding/src/ll-database-binding.c
@@ -40,15 +40,15 @@
#define APPNAME "firefox"
// ----- Globals -----
-DB* database;
-char database_file[MAX_PATH];
+static DB* database;
+static char database_file[MAX_PATH];
// ----- 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 -----
@@ -56,7 +56,7 @@ void verb_read(struct afb_req req);
* @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;
@@ -101,7 +101,7 @@ int ll_database_binding_init()
* @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)
{
DBT key;
DBT data;
@@ -165,7 +165,7 @@ void verb_insert(struct afb_req req)
free(rkey);
}
-void verb_update(struct afb_req req)
+static void verb_update(struct afb_req req)
{
DBT key;
DBT data;
@@ -232,7 +232,7 @@ void verb_update(struct afb_req req)
free(rkey);
}
-void verb_delete(struct afb_req req)
+static void verb_delete(struct afb_req req)
{
DBT key;
int ret;
@@ -281,7 +281,7 @@ void verb_delete(struct afb_req req)
free(rkey);
}
-void verb_read(struct afb_req req)
+static void verb_read(struct afb_req req)
{
DBT key;
DBT data;