diff options
Diffstat (limited to 'src/exchangedb/pg_lookup_wire_transfer.c')
-rw-r--r-- | src/exchangedb/pg_lookup_wire_transfer.c | 13 |
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" |