summaryrefslogtreecommitdiffstats
path: root/src/db.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/db.c')
-rw-r--r--src/db.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/db.c b/src/db.c
index f2f691e11..4abd63624 100644
--- a/src/db.c
+++ b/src/db.c
@@ -32,7 +32,6 @@
static char *db_basename = NULL;
static char *db_dirname = NULL;
static dbi_conn conn;
-static struct gsm_network *current_network = NULL;
static char *create_stmts[] = {
"CREATE TABLE IF NOT EXISTS Meta ("
@@ -94,7 +93,7 @@ void db_error_func(dbi_conn conn, void* data) {
printf("DBI: %s\n", msg);
}
-int db_init(const char *name, struct gsm_network *network) {
+int db_init(const char *name) {
dbi_initialize(NULL);
conn = dbi_conn_new("sqlite3");
if (conn==NULL) {
@@ -125,7 +124,6 @@ int db_init(const char *name, struct gsm_network *network) {
return 1;
}
- current_network = network;
return 0;
}