summaryrefslogtreecommitdiff
path: root/src/bank-lib/bank_api_transfer.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-01-16 21:02:10 +0100
committerChristian Grothoff <christian@grothoff.org>2020-01-16 21:02:18 +0100
commit3d9ad86dfb34121c88a4446b216c74c14517722f (patch)
tree23a3050c83425aa4c4fd776dfe1a25f95ea9236a /src/bank-lib/bank_api_transfer.c
parent1032cdea0f2c917f695231271affebbd553ae839 (diff)
downloadexchange-3d9ad86dfb34121c88a4446b216c74c14517722f.tar.gz
exchange-3d9ad86dfb34121c88a4446b216c74c14517722f.tar.bz2
exchange-3d9ad86dfb34121c88a4446b216c74c14517722f.zip
remove duplicated, wrong ec logic in bank-lib
Diffstat (limited to 'src/bank-lib/bank_api_transfer.c')
-rw-r--r--src/bank-lib/bank_api_transfer.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/bank-lib/bank_api_transfer.c b/src/bank-lib/bank_api_transfer.c
index 404e84b61..96ed0071f 100644
--- a/src/bank-lib/bank_api_transfer.c
+++ b/src/bank-lib/bank_api_transfer.c
@@ -196,27 +196,27 @@ handle_transfer_finished (void *cls,
case MHD_HTTP_BAD_REQUEST:
/* This should never happen, either us or the bank is buggy
(or API version conflict); just pass JSON reply to the application */
- ec = TALER_BANK_parse_ec_ (j);
+ ec = TALER_JSON_get_error_code (j);
break;
case MHD_HTTP_FORBIDDEN:
/* Access denied */
- ec = TALER_BANK_parse_ec_ (j);
+ ec = TALER_JSON_get_error_code (j);
break;
case MHD_HTTP_UNAUTHORIZED:
/* Nothing really to verify, bank says one of the signatures is
invalid; as we checked them, this should never happen, we
should pass the JSON reply to the application */
- ec = TALER_BANK_parse_ec_ (j);
+ ec = TALER_JSON_get_error_code (j);
break;
case MHD_HTTP_NOT_FOUND:
/* Nothing really to verify, this should never
happen, we should pass the JSON reply to the application */
- ec = TALER_BANK_parse_ec_ (j);
+ ec = TALER_JSON_get_error_code (j);
break;
case MHD_HTTP_INTERNAL_SERVER_ERROR:
/* Server had an internal issue; we should retry, but this API
leaves this to the application */
- ec = TALER_BANK_parse_ec_ (j);
+ ec = TALER_JSON_get_error_code (j);
break;
default:
/* unexpected response code */
@@ -224,7 +224,7 @@ handle_transfer_finished (void *cls,
"Unexpected response code %u\n",
(unsigned int) response_code);
GNUNET_break (0);
- ec = TALER_BANK_parse_ec_ (j);
+ ec = TALER_JSON_get_error_code (j);
response_code = 0;
break;
}