diff --git a/wallet/db.c b/wallet/db.c index 86657a1d7..bc4792a82 100644 --- a/wallet/db.c +++ b/wallet/db.c @@ -161,7 +161,7 @@ static void db_do_exec(const char *caller, struct db *db, const char *cmd) } } -void PRINTF_FMT(3, 4) +static void PRINTF_FMT(3, 4) db_exec(const char *caller, struct db *db, const char *fmt, ...) { va_list ap; diff --git a/wallet/db.h b/wallet/db.h index 8b8e3f89f..2e7d18612 100644 --- a/wallet/db.h +++ b/wallet/db.h @@ -38,12 +38,6 @@ struct db *db_setup(const tal_t *ctx); sqlite3_stmt *PRINTF_FMT(3, 4) db_query(const char *caller, struct db *db, const char *fmt, ...); -/** - * db_exec - execute a statement, call fatal() if it fails. - */ -void PRINTF_FMT(3, 4) - db_exec(const char *caller, struct db *db, const char *fmt, ...); - /** * db_begin_transaction - Begin a transaction *