From 1f4626227844b066b1207a4a395cb3cb9d9270d1 Mon Sep 17 00:00:00 2001 From: practicalswift Date: Wed, 21 Feb 2018 16:36:21 +0100 Subject: [PATCH] Remove unused parameter testname in create_test_db(const char *testname) --- wallet/test/run-db.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wallet/test/run-db.c b/wallet/test/run-db.c index 99f619a27..ce027aa9a 100644 --- a/wallet/test/run-db.c +++ b/wallet/test/run-db.c @@ -32,7 +32,7 @@ static void db_fatal(const char *fmt, ...) va_end(ap); } -static struct db *create_test_db(const char *testname) +static struct db *create_test_db(void) { struct db *db; char filename[] = "/tmp/ldb-XXXXXX"; @@ -48,7 +48,7 @@ static struct db *create_test_db(const char *testname) static bool test_empty_db_migrate(void) { - struct db *db = create_test_db(__func__); + struct db *db = create_test_db(); CHECK(db); db_begin_transaction(db); CHECK(db_get_version(db) == -1); @@ -64,7 +64,7 @@ static bool test_empty_db_migrate(void) static bool test_primitives(void) { - struct db *db = create_test_db(__func__); + struct db *db = create_test_db(); db_begin_transaction(db); CHECK(db->in_transaction); db_commit_transaction(db); @@ -88,7 +88,7 @@ static bool test_primitives(void) static bool test_vars(void) { - struct db *db = create_test_db(__func__); + struct db *db = create_test_db(); char *varname = "testvar"; CHECK(db); db_migrate(db, NULL);