aboutsummaryrefslogtreecommitdiff
path: root/src/reclaim/reclaim_credential.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/reclaim/reclaim_credential.c')
-rw-r--r--src/reclaim/reclaim_credential.c29
1 files changed, 6 insertions, 23 deletions
diff --git a/src/reclaim/reclaim_credential.c b/src/reclaim/reclaim_credential.c
index b1312f403..6dc1a1fcf 100644
--- a/src/reclaim/reclaim_credential.c
+++ b/src/reclaim/reclaim_credential.c
@@ -301,13 +301,6 @@ GNUNET_RECLAIM_credential_list_serialize_get_size (
301} 301}
302 302
303 303
304/**
305 * Serialize an attribute list
306 *
307 * @param attrs the attribute list to serialize
308 * @param result the serialized attribute
309 * @return length of serialized data
310 */
311size_t 304size_t
312GNUNET_RECLAIM_credential_list_serialize ( 305GNUNET_RECLAIM_credential_list_serialize (
313 const struct GNUNET_RECLAIM_CredentialList *credentials, 306 const struct GNUNET_RECLAIM_CredentialList *credentials,
@@ -399,19 +392,14 @@ GNUNET_RECLAIM_credential_list_dup (
399} 392}
400 393
401 394
402/**
403 * Destroy credential list
404 *
405 * @param attrs list to destroy
406 */
407void 395void
408GNUNET_RECLAIM_credential_list_destroy ( 396GNUNET_RECLAIM_credential_list_destroy (
409 struct GNUNET_RECLAIM_CredentialList *al) 397 struct GNUNET_RECLAIM_CredentialList *credentials)
410{ 398{
411 struct GNUNET_RECLAIM_CredentialListEntry *ale; 399 struct GNUNET_RECLAIM_CredentialListEntry *ale;
412 struct GNUNET_RECLAIM_CredentialListEntry *tmp_ale; 400 struct GNUNET_RECLAIM_CredentialListEntry *tmp_ale;
413 401
414 for (ale = al->list_head; NULL != ale;) 402 for (ale = credentials->list_head; NULL != ale;)
415 { 403 {
416 if (NULL != ale->credential) 404 if (NULL != ale->credential)
417 GNUNET_free (ale->credential); 405 GNUNET_free (ale->credential);
@@ -419,7 +407,7 @@ GNUNET_RECLAIM_credential_list_destroy (
419 ale = ale->next; 407 ale = ale->next;
420 GNUNET_free (tmp_ale); 408 GNUNET_free (tmp_ale);
421 } 409 }
422 GNUNET_free (al); 410 GNUNET_free (credentials);
423} 411}
424 412
425 413
@@ -826,19 +814,14 @@ GNUNET_RECLAIM_presentation_list_dup (
826} 814}
827 815
828 816
829/**
830 * Destroy presentation list
831 *
832 * @param attrs list to destroy
833 */
834void 817void
835GNUNET_RECLAIM_presentation_list_destroy ( 818GNUNET_RECLAIM_presentation_list_destroy (
836 struct GNUNET_RECLAIM_PresentationList *al) 819 struct GNUNET_RECLAIM_PresentationList *presentations)
837{ 820{
838 struct GNUNET_RECLAIM_PresentationListEntry *ale; 821 struct GNUNET_RECLAIM_PresentationListEntry *ale;
839 struct GNUNET_RECLAIM_PresentationListEntry *tmp_ale; 822 struct GNUNET_RECLAIM_PresentationListEntry *tmp_ale;
840 823
841 for (ale = al->list_head; NULL != ale;) 824 for (ale = presentations->list_head; NULL != ale;)
842 { 825 {
843 if (NULL != ale->presentation) 826 if (NULL != ale->presentation)
844 GNUNET_free (ale->presentation); 827 GNUNET_free (ale->presentation);
@@ -846,7 +829,7 @@ GNUNET_RECLAIM_presentation_list_destroy (
846 ale = ale->next; 829 ale = ale->next;
847 GNUNET_free (tmp_ale); 830 GNUNET_free (tmp_ale);
848 } 831 }
849 GNUNET_free (al); 832 GNUNET_free (presentations);
850} 833}
851 834
852 835