diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-11 20:25:11 +0200 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2019-04-14 10:01:23 +0200 |
commit | 94f8e5437da8cc1c5ee38a333da2e1c68b3289f1 (patch) | |
tree | 8f56950954baccbc7e1867f9ac01144b419a4798 /src/reclaim/gnunet-reclaim.c | |
parent | 61625d4834bc7a599446486c9d16f2451527f989 (diff) | |
download | gnunet-94f8e5437da8cc1c5ee38a333da2e1c68b3289f1.tar.gz gnunet-94f8e5437da8cc1c5ee38a333da2e1c68b3289f1.zip |
RECLAIM: Start move to GNS encryption
Diffstat (limited to 'src/reclaim/gnunet-reclaim.c')
-rw-r--r-- | src/reclaim/gnunet-reclaim.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/reclaim/gnunet-reclaim.c b/src/reclaim/gnunet-reclaim.c index 177f505c6..b10586feb 100644 --- a/src/reclaim/gnunet-reclaim.c +++ b/src/reclaim/gnunet-reclaim.c | |||
@@ -11,7 +11,7 @@ | |||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Affero General Public License for more details. | 13 | Affero General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Affero General Public License | 15 | You should have received a copy of the GNU Affero General Public License |
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 16 | along with this program. If not, see <http://www.gnu.org/licenses/>. |
17 | 17 | ||
@@ -219,7 +219,8 @@ process_attrs (void *cls, | |||
219 | attr->data_size); | 219 | attr->data_size); |
220 | attr_type = GNUNET_RECLAIM_ATTRIBUTE_number_to_typename (attr->type); | 220 | attr_type = GNUNET_RECLAIM_ATTRIBUTE_number_to_typename (attr->type); |
221 | fprintf (stdout, | 221 | fprintf (stdout, |
222 | "%s: %s [%s,v%u]\n", attr->name, value_str, attr_type, attr->version); | 222 | "%s: %s [%s,v%u,id=%lu]\n", |
223 | attr->name, value_str, attr_type, attr->version, attr->id); | ||
223 | } | 224 | } |
224 | 225 | ||
225 | 226 | ||
@@ -373,13 +374,14 @@ iter_cb (void *cls, | |||
373 | attr->data, | 374 | attr->data, |
374 | attr->data_size); | 375 | attr->data_size); |
375 | le->claim->version = attr->version; | 376 | le->claim->version = attr->version; |
377 | le->claim->id = attr->id; | ||
376 | GNUNET_CONTAINER_DLL_insert (attr_list->list_head, | 378 | GNUNET_CONTAINER_DLL_insert (attr_list->list_head, |
377 | attr_list->list_tail, | 379 | attr_list->list_tail, |
378 | le); | 380 | le); |
379 | break; | 381 | break; |
380 | } | 382 | } |
381 | GNUNET_free (attrs_tmp); | 383 | GNUNET_free (attrs_tmp); |
382 | } | 384 | } |
383 | else if (list) | 385 | else if (list) |
384 | { | 386 | { |
385 | attr_str = GNUNET_RECLAIM_ATTRIBUTE_value_to_string (attr->type, | 387 | attr_str = GNUNET_RECLAIM_ATTRIBUTE_value_to_string (attr->type, |
@@ -387,7 +389,8 @@ iter_cb (void *cls, | |||
387 | attr->data_size); | 389 | attr->data_size); |
388 | attr_type = GNUNET_RECLAIM_ATTRIBUTE_number_to_typename (attr->type); | 390 | attr_type = GNUNET_RECLAIM_ATTRIBUTE_number_to_typename (attr->type); |
389 | fprintf (stdout, | 391 | fprintf (stdout, |
390 | "%s: %s [%s,v%u]\n", attr->name, attr_str, attr_type, attr->version); | 392 | "%s: %s [%s,v%u,id=%lu]\n", |
393 | attr->name, attr_str, attr_type, attr->version, attr->id); | ||
391 | } | 394 | } |
392 | GNUNET_RECLAIM_get_attributes_next (attr_iterator); | 395 | GNUNET_RECLAIM_get_attributes_next (attr_iterator); |
393 | } | 396 | } |