summaryrefslogtreecommitdiff
path: root/src/exchangedb
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
parent9f885f9ad962ec0ab3472fa22c7f6fd8d5a7bbe0 (diff)
downloadexchange-bb7bd4b12895c202fa90951be6f9d23272a8ed1d.tar.gz
exchange-bb7bd4b12895c202fa90951be6f9d23272a8ed1d.tar.bz2
exchange-bb7bd4b12895c202fa90951be6f9d23272a8ed1d.zip
style fixes
Diffstat (limited to 'src/exchangedb')
-rw-r--r--src/exchangedb/exchangedb_transactions.c2
-rw-r--r--src/exchangedb/plugin_exchangedb_postgres.c15
2 files changed, 9 insertions, 8 deletions
diff --git a/src/exchangedb/exchangedb_transactions.c b/src/exchangedb/exchangedb_transactions.c
index 8c14de6c..c862f5a0 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 e333c1df..5f1668ef 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,