From e04772ec9cd617132eae5b41fec181dd0dc8bf1f Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Thu, 25 Jul 2019 18:14:16 +0200 Subject: [PATCH] wallet: Move the db_fatal definition so we can use it in drivers Signed-off-by: Christian Decker --- wallet/db.c | 5 ----- wallet/db_common.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/wallet/db.c b/wallet/db.c index 583640e5c..08671b78c 100644 --- a/wallet/db.c +++ b/wallet/db.c @@ -14,11 +14,6 @@ #define DB_FILE "lightningd.sqlite3" #define NSEC_IN_SEC 1000000000 -/* For testing, we want to catch fatal messages. */ -#ifndef db_fatal -#define db_fatal fatal -#endif - struct migration { const char *sql; void (*func)(struct lightningd *ld, struct db *db); diff --git a/wallet/db_common.h b/wallet/db_common.h index ae621b8ed..8156d6a1f 100644 --- a/wallet/db_common.h +++ b/wallet/db_common.h @@ -3,6 +3,11 @@ #include "config.h" #include #include +/* For testing, we want to catch fatal messages. */ +#ifndef db_fatal +#define db_fatal fatal +#endif + struct db_query { const char *name;