aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim-attribute/reclaim_attribute.c
diff options
context:
space:
mode:
authorMarkus Voggenreiter <Markus.Voggenreiter@tum.de>2019-10-19 11:30:24 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2020-01-13 13:31:02 +0100
commit4eda8d33675ba1e004792635b33342c04c5cbe32 (patch)
tree93eab84b3b93dace71ec4f31988991abcd692a2d /src/reclaim-attribute/reclaim_attribute.c
parent483bc7e3095dff908fe8c032ea96995d44304868 (diff)
downloadgnunet-4eda8d33675ba1e004792635b33342c04c5cbe32.tar.gz
gnunet-4eda8d33675ba1e004792635b33342c04c5cbe32.zip
Listing Attestations through service
Diffstat (limited to 'src/reclaim-attribute/reclaim_attribute.c')
-rw-r--r--src/reclaim-attribute/reclaim_attribute.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/reclaim-attribute/reclaim_attribute.c b/src/reclaim-attribute/reclaim_attribute.c
index 6dd1632fd..9ac75dfba 100644
--- a/src/reclaim-attribute/reclaim_attribute.c
+++ b/src/reclaim-attribute/reclaim_attribute.c
@@ -229,7 +229,6 @@ GNUNET_RECLAIM_ATTESTATION_typename_to_number (const char *typename)
229 unsigned int i; 229 unsigned int i;
230 struct Plugin *plugin; 230 struct Plugin *plugin;
231 uint32_t ret; 231 uint32_t ret;
232
233 init (); 232 init ();
234 for (i = 0; i < num_plugins; i++) 233 for (i = 0; i < num_plugins; i++)
235 { 234 {
@@ -699,8 +698,8 @@ GNUNET_RECLAIM_ATTESTATION_serialize (
699 698
700 attr_ser = (struct Attestation *) result; 699 attr_ser = (struct Attestation *) result;
701 attr_ser->attestation_type = htons (attr->type); 700 attr_ser->attestation_type = htons (attr->type);
702 attr_ser->attestation_type = htonl (attr->version); 701 attr_ser->attestation_version = htonl (attr->version);
703 attr_ser->attestation_type = GNUNET_htonll (attr->id); 702 attr_ser->attestation_id = GNUNET_htonll (attr->id);
704 name_len = strlen (attr->name); 703 name_len = strlen (attr->name);
705 attr_ser->name_len = htons (name_len); 704 attr_ser->name_len = htons (name_len);
706 write_ptr = (char *) &attr_ser[1]; 705 write_ptr = (char *) &attr_ser[1];