summaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_preflight.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-11-14 05:08:11 +0100
committerChristian Grothoff <christian@grothoff.org>2022-11-14 05:08:11 +0100
commit9db572706d81ece0fe5c0d094b956572ddd8516d (patch)
tree1ad818affad14be8f044074515c0ab23773c91ed /src/exchangedb/pg_preflight.c
parent231cdaf4f777165c3858d737f0b7b799d39758ce (diff)
downloadexchange-9db572706d81ece0fe5c0d094b956572ddd8516d.tar.gz
exchange-9db572706d81ece0fe5c0d094b956572ddd8516d.tar.bz2
exchange-9db572706d81ece0fe5c0d094b956572ddd8516d.zip
-fix compiler warnings
Diffstat (limited to 'src/exchangedb/pg_preflight.c')
-rw-r--r--src/exchangedb/pg_preflight.c17
1 files changed, 14 insertions, 3 deletions
diff --git a/src/exchangedb/pg_preflight.c b/src/exchangedb/pg_preflight.c
index 4925db512..1961265d1 100644
--- a/src/exchangedb/pg_preflight.c
+++ b/src/exchangedb/pg_preflight.c
@@ -26,6 +26,18 @@
#include "pg_helper.h"
+/**
+ * Connect to the database if the connection does not exist yet.
+ *
+ * @param pg the plugin-specific state
+ * @param skip_prepare true if we should skip prepared statement setup
+ * @return #GNUNET_OK on success
+ */
+enum GNUNET_GenericReturnValue
+TEH_PG_internal_setup (struct PostgresClosure *pg,
+ bool skip_prepare);
+
+
enum GNUNET_GenericReturnValue
TEH_PG_preflight (void *cls)
{
@@ -38,9 +50,8 @@ TEH_PG_preflight (void *cls)
if (! pg->init)
{
if (GNUNET_OK !=
-
- internal_setup (pg,
- false))
+ TEH_PG_internal_setup (pg,
+ false))
return GNUNET_SYSERR;
}
if (NULL == pg->transaction_name)