summaryrefslogtreecommitdiff
path: root/src/json
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2020-07-16 00:42:42 +0200
committerChristian Grothoff <christian@grothoff.org>2020-07-16 00:42:42 +0200
commit90e756ddea52715366fb5d9f7e3b4cced6be62e1 (patch)
tree3e1b69c63d5a4b3ec80a2ae301051c29d24a30b8 /src/json
parent6ef6de6c5c13a8614d334e9e49233326b18c8025 (diff)
downloadexchange-90e756ddea52715366fb5d9f7e3b4cced6be62e1.tar.gz
exchange-90e756ddea52715366fb5d9f7e3b4cced6be62e1.tar.bz2
exchange-90e756ddea52715366fb5d9f7e3b4cced6be62e1.zip
rename TALER_JSON_hash to TALER_JSON_contract_hash
Diffstat (limited to 'src/json')
-rw-r--r--src/json/json.c4
-rw-r--r--src/json/json_wire.c2
-rw-r--r--src/json/test_json_wire.c3
3 files changed, 5 insertions, 4 deletions
diff --git a/src/json/json.c b/src/json/json.c
index 67d62605f..a1a2c6fb4 100644
--- a/src/json/json.c
+++ b/src/json/json.c
@@ -38,8 +38,8 @@
* @return #GNUNET_OK on success, #GNUNET_SYSERR on error
*/
int
-TALER_JSON_hash (const json_t *json,
- struct GNUNET_HashCode *hc)
+TALER_JSON_contract_hash (const json_t *json,
+ struct GNUNET_HashCode *hc)
{
char *wire_enc;
size_t len;
diff --git a/src/json/json_wire.c b/src/json/json_wire.c
index 7d3453e16..78bb1b419 100644
--- a/src/json/json_wire.c
+++ b/src/json/json_wire.c
@@ -343,7 +343,7 @@ validate_payto_iban (const char *account_url)
IBAN_PREFIX,
strlen (IBAN_PREFIX)))
return GNUNET_NO;
-
+
iban = strrchr (account_url, '/') + 1;
#undef IBAN_PREFIX
q = strchr (iban,
diff --git a/src/json/test_json_wire.c b/src/json/test_json_wire.c
index 75208c40a..f9264c61c 100644
--- a/src/json/test_json_wire.c
+++ b/src/json/test_json_wire.c
@@ -33,7 +33,8 @@ main (int argc,
json_t *wire_xtalerbank;
json_t *wire_iban;
const char *payto_xtalerbank = "payto://x-taler-bank/42";
- const char *payto_iban = "payto://iban/BIC-TO-BE-SKIPPED/DE89370400440532013000";
+ const char *payto_iban =
+ "payto://iban/BIC-TO-BE-SKIPPED/DE89370400440532013000";
char *p_xtalerbank;
char *p_iban;