summaryrefslogtreecommitdiff
path: root/src/lib/exchange_api_common.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-01-08 23:36:09 +0100
committerChristian Grothoff <christian@grothoff.org>2021-01-08 23:36:09 +0100
commit260e287685680d97448920432b4673469a99a83f (patch)
treec06e99b6724f8ca2d2a815d1c95f80dd4a4bec53 /src/lib/exchange_api_common.c
parentdb61628a9cffbfc4e33e0f0094039c71ef7b96be (diff)
downloadexchange-260e287685680d97448920432b4673469a99a83f.tar.gz
exchange-260e287685680d97448920432b4673469a99a83f.tar.bz2
exchange-260e287685680d97448920432b4673469a99a83f.zip
change wire_reference to be uint64_t always; more work on lrbt_callbacks
Diffstat (limited to 'src/lib/exchange_api_common.c')
-rw-r--r--src/lib/exchange_api_common.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/lib/exchange_api_common.c b/src/lib/exchange_api_common.c
index 3591a7bbc..82604e0b1 100644
--- a/src/lib/exchange_api_common.c
+++ b/src/lib/exchange_api_common.c
@@ -101,14 +101,11 @@ TALER_EXCHANGE_parse_reserve_history (
"CREDIT"))
{
const char *wire_url;
- void *wire_reference;
- size_t wire_reference_size;
+ uint64_t wire_reference;
struct GNUNET_TIME_Absolute timestamp;
-
struct GNUNET_JSON_Specification withdraw_spec[] = {
- GNUNET_JSON_spec_varsize ("wire_reference",
- &wire_reference,
- &wire_reference_size),
+ GNUNET_JSON_spec_uint64 ("wire_reference",
+ &wire_reference),
TALER_JSON_spec_absolute_time ("timestamp",
&timestamp),
GNUNET_JSON_spec_string ("sender_account_url",
@@ -136,8 +133,6 @@ TALER_EXCHANGE_parse_reserve_history (
}
rh->details.in_details.sender_url = GNUNET_strdup (wire_url);
rh->details.in_details.wire_reference = wire_reference;
- rh->details.in_details.wire_reference_size =
- wire_reference_size;
rh->details.in_details.timestamp = timestamp;
/* end type==DEPOSIT */
}
@@ -425,7 +420,6 @@ TALER_EXCHANGE_free_reserve_history (
switch (rhistory[i].type)
{
case TALER_EXCHANGE_RTT_CREDIT:
- GNUNET_free (rhistory[i].details.in_details.wire_reference);
GNUNET_free (rhistory[i].details.in_details.sender_url);
break;
case TALER_EXCHANGE_RTT_WITHDRAWAL: