summaryrefslogtreecommitdiff
path: root/src/exchange-tools
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-18 17:22:13 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-18 17:22:22 +0100
commit684da791cc9ad3c86b4c28089c050ab7efd5e796 (patch)
tree3068b8f802c1b70e5e0782b0192f038d61960425 /src/exchange-tools
parentd4abdb7a287a2c0a7cca5ba945934be795406cf9 (diff)
downloadexchange-684da791cc9ad3c86b4c28089c050ab7efd5e796.tar.gz
exchange-684da791cc9ad3c86b4c28089c050ab7efd5e796.tar.bz2
exchange-684da791cc9ad3c86b4c28089c050ab7efd5e796.zip
fix warnings
Diffstat (limited to 'src/exchange-tools')
-rw-r--r--src/exchange-tools/taler-wire.c19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/exchange-tools/taler-wire.c b/src/exchange-tools/taler-wire.c
index 3251aad4..4cb81f10 100644
--- a/src/exchange-tools/taler-wire.c
+++ b/src/exchange-tools/taler-wire.c
@@ -119,6 +119,7 @@ history_cb (void *cls,
(void) cls;
(void) ec;
(void) http_status;
+ (void) json;
if (NULL == details)
{
fprintf (stdout,
@@ -129,8 +130,13 @@ history_cb (void *cls,
}
fprintf (stdout,
- "%llu\n",
- (unsigned long long) serial_id);
+ "%llu: %s->%s (%s) over %s at %s\n",
+ (unsigned long long) serial_id,
+ details->debit_account_url,
+ details->credit_account_url,
+ TALER_B2S (&details->reserve_pub),
+ TALER_amount2s (&details->amount),
+ GNUNET_STRINGS_absolute_time_to_string (details->execution_date));
return GNUNET_OK;
}
@@ -152,6 +158,7 @@ confirmation_cb (void *cls,
uint64_t row_id,
struct GNUNET_TIME_Absolute timestamp)
{
+ (void) cls;
if (MHD_HTTP_OK != response_code)
{
fprintf (stderr,
@@ -162,7 +169,9 @@ confirmation_cb (void *cls,
}
fprintf (stdout,
- "Wire transfer executed successfully.\n");
+ "Wire transfer #%llu executed successfully at %s.\n",
+ (unsigned long long) row_id,
+ GNUNET_STRINGS_absolute_time_to_string (timestamp));
global_ret = 0;
GNUNET_SCHEDULER_shutdown ();
}
@@ -255,6 +264,7 @@ execute_history ()
static void
do_shutdown (void *cls)
{
+ (void) cls;
if (NULL != ctx)
{
GNUNET_CURL_fini (ctx);
@@ -294,6 +304,9 @@ run (void *cls,
const char *cfgfile,
const struct GNUNET_CONFIGURATION_Handle *cfg)
{
+ (void) cls;
+ (void) args;
+ (void) cfgfile;
if (NULL == account_section)
{
fprintf (stderr,