diff options
author | Christian Grothoff <christian@grothoff.org> | 2020-07-18 00:44:39 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2020-07-18 00:44:39 +0200 |
commit | 7f4ddbcab8598e3d5e29c23ce883cdfa664408f1 (patch) | |
tree | 5f1b18463f641f24fad519e0aefb60b97d707b52 /src/reclaim/plugin_rest_reclaim.c | |
parent | 28ab2c446fba4980a8295d59fdf203a028a35dd6 (diff) | |
download | gnunet-7f4ddbcab8598e3d5e29c23ce883cdfa664408f1.tar.gz gnunet-7f4ddbcab8598e3d5e29c23ce883cdfa664408f1.zip |
merge flags into enum for GNUNET_DISK_pipe() API, fixing #6188
Diffstat (limited to 'src/reclaim/plugin_rest_reclaim.c')
-rw-r--r-- | src/reclaim/plugin_rest_reclaim.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/reclaim/plugin_rest_reclaim.c b/src/reclaim/plugin_rest_reclaim.c index 654df175e..10ee2f801 100644 --- a/src/reclaim/plugin_rest_reclaim.c +++ b/src/reclaim/plugin_rest_reclaim.c | |||
@@ -576,7 +576,8 @@ attest_collect (void *cls, | |||
576 | if (GNUNET_OK == GNUNET_RECLAIM_attestation_get_expiration (attest, | 576 | if (GNUNET_OK == GNUNET_RECLAIM_attestation_get_expiration (attest, |
577 | &exp)) | 577 | &exp)) |
578 | { | 578 | { |
579 | json_object_set_new (attest_obj, "expiration", json_integer (exp.abs_value_us)); | 579 | json_object_set_new (attest_obj, "expiration", json_integer ( |
580 | exp.abs_value_us)); | ||
580 | } | 581 | } |
581 | id_str = GNUNET_STRINGS_data_to_string_alloc (&attest->id, | 582 | id_str = GNUNET_STRINGS_data_to_string_alloc (&attest->id, |
582 | sizeof(attest->id)); | 583 | sizeof(attest->id)); |
@@ -597,7 +598,7 @@ attest_collect (void *cls, | |||
597 | json_object_set_new (attr_obj, "name", json_string ( | 598 | json_object_set_new (attr_obj, "name", json_string ( |
598 | ale->attribute->name)); | 599 | ale->attribute->name)); |
599 | 600 | ||
600 | json_object_set_new (attr_obj, "flag", json_string ("1")); //FIXME | 601 | json_object_set_new (attr_obj, "flag", json_string ("1")); // FIXME |
601 | type = GNUNET_RECLAIM_attribute_number_to_typename (ale->attribute->type); | 602 | type = GNUNET_RECLAIM_attribute_number_to_typename (ale->attribute->type); |
602 | json_object_set_new (attr_obj, "type", json_string (type)); | 603 | json_object_set_new (attr_obj, "type", json_string (type)); |
603 | json_object_set_new (attr_obj, "id", json_string ("")); | 604 | json_object_set_new (attr_obj, "id", json_string ("")); |