From 9db572706d81ece0fe5c0d094b956572ddd8516d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 14 Nov 2022 05:08:11 +0100 Subject: -fix compiler warnings --- src/exchangedb/pg_preflight.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'src/exchangedb/pg_preflight.c') 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) -- cgit v1.2.3