diff options
author | Christian Grothoff <christian@grothoff.org> | 2018-03-12 11:25:39 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2018-03-12 11:25:39 +0100 |
commit | 1ae2ba3d0a035734e4a28432e3246e58338fe9e8 (patch) | |
tree | 883e099d29a2a1595cbc41f9f5e4611d38788e24 | |
parent | ae2f61947bcb0439413c97b52d47369b7ba0738a (diff) | |
download | exchange-1ae2ba3d0a035734e4a28432e3246e58338fe9e8.tar.xz |
fix compiler warnings related to use of %llu on uint64_t
-rw-r--r-- | src/bank-lib/testing_api_cmd_history.c | 31 |
1 files changed, 16 insertions, 15 deletions
diff --git a/src/bank-lib/testing_api_cmd_history.c b/src/bank-lib/testing_api_cmd_history.c index da2dd7e4a..30090bf8c 100644 --- a/src/bank-lib/testing_api_cmd_history.c +++ b/src/bank-lib/testing_api_cmd_history.c @@ -111,7 +111,7 @@ static int test_cancelled (struct TALER_TESTING_Interpreter *is, unsigned int off) { - const char *rejected_reference; + const char *rejected_reference; const struct TALER_TESTING_Command *current_cmd; current_cmd = &is->commands[off]; @@ -120,7 +120,7 @@ test_cancelled (struct TALER_TESTING_Interpreter *is, { const struct TALER_TESTING_Command *c = &is->commands[i]; - + #warning "Errors reported here are NOT fatal" /* Rejected wire transfers have hold a reference to a * reject command to mark them as rejected. So errors @@ -275,7 +275,7 @@ build_history (struct TALER_TESTING_Interpreter *is, if (*row_id_start == *row_id) { /* Doesn't count, start is excluded from output. */ - total = 0; + total = 0; ok = GNUNET_YES; continue; } @@ -294,7 +294,7 @@ build_history (struct TALER_TESTING_Interpreter *is, " transfer from history\n"); continue; } - + const uint64_t *credit_account_no; const uint64_t *debit_account_no; @@ -308,9 +308,9 @@ build_history (struct TALER_TESTING_Interpreter *is, TALER_LOG_INFO ("Potential history element:" " %llu->%llu; my account: %llu\n", - *debit_account_no, - *credit_account_no, - hs->account_no); + (unsigned long long) *debit_account_no, + (unsigned long long) *credit_account_no, + (unsigned long long) hs->account_no); if ( ( (0 != (hs->direction & TALER_BANK_DIRECTION_CREDIT)) && (hs->account_no == *credit_account_no)) || @@ -348,9 +348,9 @@ build_history (struct TALER_TESTING_Interpreter *is, { if (*row_id_start == *row_id) - { + { /* Doesn't count, start is excluded from output. */ - total = 0; + total = 0; ok = GNUNET_YES; continue; } @@ -380,9 +380,9 @@ build_history (struct TALER_TESTING_Interpreter *is, TALER_LOG_INFO ("Potential history bit:" " %llu->%llu; my account: %llu\n", - *debit_account_no, - *credit_account_no, - hs->account_no); + (unsigned long long) *debit_account_no, + (unsigned long long) *credit_account_no, + (unsigned long long) hs->account_no); if ( ( (0 != (hs->direction & TALER_BANK_DIRECTION_CREDIT)) && (hs->account_no == *credit_account_no)) && @@ -653,7 +653,7 @@ history_run (void *cls, if (NULL != hs->start_row_reference) { const struct TALER_TESTING_Command *history_cmd; - + history_cmd = TALER_TESTING_interpreter_lookup_command (is, hs->start_row_reference); @@ -665,8 +665,9 @@ history_run (void *cls, TALER_TESTING_FAIL (is); row_id = *row_id_ptr; - TALER_LOG_DEBUG ("row id (from trait) is %llu\n", row_id); - + TALER_LOG_DEBUG ("row id (from trait) is %llu\n", + (unsigned long long) row_id); + } auth = &AUTHS[hs->account_no - 1]; |