summaryrefslogtreecommitdiff
path: root/src/exchangedb/plugin_exchangedb_postgres.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-03-16 18:29:44 +0100
committerChristian Grothoff <christian@grothoff.org>2020-03-16 18:29:44 +0100
commitbb7bd4b12895c202fa90951be6f9d23272a8ed1d (patch)
tree937b67a17be4e4c3a288257c58141ae5c54d0837 /src/exchangedb/plugin_exchangedb_postgres.c
parent9f885f9ad962ec0ab3472fa22c7f6fd8d5a7bbe0 (diff)
downloadexchange-bb7bd4b12895c202fa90951be6f9d23272a8ed1d.tar.gz
exchange-bb7bd4b12895c202fa90951be6f9d23272a8ed1d.tar.bz2
exchange-bb7bd4b12895c202fa90951be6f9d23272a8ed1d.zip
style fixes
Diffstat (limited to 'src/exchangedb/plugin_exchangedb_postgres.c')
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/exchangedb/plugin_exchangedb_postgres.c b/src/exchangedb/plugin_exchangedb_postgres.c
index e333c1dfc..5f1668ef1 100644
--- a/src/exchangedb/plugin_exchangedb_postgres.c
+++ b/src/exchangedb/plugin_exchangedb_postgres.c
@@ -4450,24 +4450,25 @@ postgres_get_coin_transactions (
&add_coin_recoup_refresh },
{ NULL, NULL }
};
- struct CoinHistoryContext chc;
struct GNUNET_PQ_QueryParam params[] = {
GNUNET_PQ_query_param_auto_from_type (coin_pub),
GNUNET_PQ_query_param_end
};
enum GNUNET_DB_QueryStatus qs;
const struct Work *work;
+ struct CoinHistoryContext chc = {
+ .head = NULL,
+ .status = GNUNET_DB_STATUS_SUCCESS_ONE_RESULT,
+ .coin_pub = coin_pub,
+ .session = session,
+ .pg = pg,
+ .db_cls = cls
+ };
work = (GNUNET_YES == include_recoup) ? work_wp : work_op;
GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
"Getting transactions for coin %s\n",
TALER_B2S (coin_pub));
- chc.head = NULL;
- chc.status = GNUNET_DB_STATUS_SUCCESS_ONE_RESULT;
- chc.coin_pub = coin_pub;
- chc.session = session;
- chc.pg = pg;
- chc.db_cls = cls;
for (unsigned int i = 0; NULL != work[i].statement; i++)
{
qs = GNUNET_PQ_eval_prepared_multi_select (session->conn,