From bb7bd4b12895c202fa90951be6f9d23272a8ed1d Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Mon, 16 Mar 2020 18:29:44 +0100 Subject: style fixes --- src/exchangedb/exchangedb_transactions.c | 2 +- src/exchangedb/plugin_exchangedb_postgres.c | 15 ++++++++------- 2 files changed, 9 insertions(+), 8 deletions(-) (limited to 'src/exchangedb') diff --git a/src/exchangedb/exchangedb_transactions.c b/src/exchangedb/exchangedb_transactions.c index 8c14de6c1..c862f5a0b 100644 --- a/src/exchangedb/exchangedb_transactions.c +++ b/src/exchangedb/exchangedb_transactions.c @@ -29,7 +29,7 @@ * * @param tl transaction list to process * @param off offset to use as the starting value - * @param[out] ret where the resulting total is to be stored + * @param[out] ret where the resulting total is to be stored (may alias @a off) * @return #GNUNET_OK on success, #GNUNET_SYSERR on errors */ int 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, -- cgit v1.2.3