diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-04-08 22:28:52 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-04-08 22:28:52 +0200 |
commit | 80b29ed2aef0c50a9755809816d781afc08ef71e (patch) | |
tree | d1dbc750be7e3017c6ee3521c19ba8073203b9ed /src/util/json.c | |
parent | 42147c2501d06c44c8bfbc052d72fb2e97eaa2c6 (diff) | |
download | exchange-80b29ed2aef0c50a9755809816d781afc08ef71e.tar.xz |
indentation and minor updates to reflect latest API docs
Diffstat (limited to 'src/util/json.c')
-rw-r--r-- | src/util/json.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/util/json.c b/src/util/json.c index c462597a1..74236ed1b 100644 --- a/src/util/json.c +++ b/src/util/json.c @@ -84,7 +84,8 @@ TALER_json_from_abs (struct GNUNET_TIME_Absolute stamp) json_t *j; char *mystr; int ret; - ret = GNUNET_asprintf (&mystr, "%llu", + ret = GNUNET_asprintf (&mystr, + "%llu", (long long) (stamp.abs_value_us / (1000 * 1000))); GNUNET_assert (ret > 0); j = json_string (mystr); @@ -117,11 +118,11 @@ TALER_json_from_eddsa_sig (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpo el = TALER_json_from_data (purpose, ntohl (purpose->size)); - json_object_set_new (root, "eddsa-val", el); + json_object_set_new (root, "eddsa_val", el); el = TALER_json_from_data (signature, sizeof (struct GNUNET_CRYPTO_EddsaSignature)); - json_object_set_new (root, "eddsa-sig", el); + json_object_set_new (root, "eddsa_sig", el); return root; } @@ -151,11 +152,11 @@ TALER_json_from_ecdsa_sig (const struct GNUNET_CRYPTO_EccSignaturePurpose *purpo el = TALER_json_from_data (purpose, ntohl (purpose->size)); - json_object_set_new (root, "ecdsa-val", el); + json_object_set_new (root, "ecdsa_val", el); el = TALER_json_from_data (signature, sizeof (struct GNUNET_CRYPTO_EddsaSignature)); - json_object_set_new (root, "ecdsa-sig", el); + json_object_set_new (root, "ecdsa_sig", el); return root; } |