summaryrefslogtreecommitdiff
path: root/src/exchangedb/pg_lookup_wire_transfer.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2022-12-30 21:28:19 +0100
committerChristian Grothoff <christian@grothoff.org>2022-12-30 21:28:19 +0100
commitb1d9745545ff528729b53312947ba768c336a1d8 (patch)
tree114bc999f01ac638dc0110167babda305d2fd7cb /src/exchangedb/pg_lookup_wire_transfer.c
parent5754adc414eaca8dcc2de47b6fcc12e9d1979c12 (diff)
downloadexchange-b1d9745545ff528729b53312947ba768c336a1d8.tar.gz
exchange-b1d9745545ff528729b53312947ba768c336a1d8.tar.bz2
exchange-b1d9745545ff528729b53312947ba768c336a1d8.zip
-work on new DB queries
Diffstat (limited to 'src/exchangedb/pg_lookup_wire_transfer.c')
-rw-r--r--src/exchangedb/pg_lookup_wire_transfer.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/exchangedb/pg_lookup_wire_transfer.c b/src/exchangedb/pg_lookup_wire_transfer.c
index d8d7278dd..5d1ad25f5 100644
--- a/src/exchangedb/pg_lookup_wire_transfer.c
+++ b/src/exchangedb/pg_lookup_wire_transfer.c
@@ -48,7 +48,7 @@ struct WireTransferResultContext
/**
* Set to #GNUNET_SYSERR on serious errors.
*/
- int status;
+ enum GNUNET_GenericReturnValue status;
};
@@ -141,13 +141,14 @@ TEH_PG_lookup_wire_transfer (
GNUNET_PQ_query_param_auto_from_type (wtid),
GNUNET_PQ_query_param_end
};
- struct WireTransferResultContext ctx;
+ struct WireTransferResultContext ctx = {
+ .cb = cb,
+ .cb_cls = cb_cls,
+ .pg = pg,
+ .status = GNUNET_OK
+ };
enum GNUNET_DB_QueryStatus qs;
- ctx.cb = cb;
- ctx.cb_cls = cb_cls;
- ctx.pg = pg;
- ctx.status = GNUNET_OK;
PREPARE (pg,
"lookup_transactions",
"SELECT"