summaryrefslogtreecommitdiff
path: root/src/testing/testing_trait_policy.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testing/testing_trait_policy.c')
-rw-r--r--src/testing/testing_trait_policy.c21
1 files changed, 3 insertions, 18 deletions
diff --git a/src/testing/testing_trait_policy.c b/src/testing/testing_trait_policy.c
index 45e773c..1a6e572 100644
--- a/src/testing/testing_trait_policy.c
+++ b/src/testing/testing_trait_policy.c
@@ -29,14 +29,6 @@
#define ANASTASIS_TESTING_TRAIT_POLICY "anastasis-policy"
-/**
- * Obtain a policy from @a cmd.
- *
- * @param cmd command to extract the policy from.
- * @param index the index of the policy
- * @param t[out] set to the policy coming from @a cmd.
- * @return #GNUNET_OK on success.
- */
int
ANASTASIS_TESTING_get_trait_policy (const struct TALER_TESTING_Command *cmd,
unsigned int index,
@@ -49,23 +41,16 @@ ANASTASIS_TESTING_get_trait_policy (const struct TALER_TESTING_Command *cmd,
}
-/**
- * Offer a policy.
- *
- * @param index the policy's index number.
- * @param t the policy to offer.
- * @return #GNUNET_OK on success.
- */
struct TALER_TESTING_Trait
-ANASTASIS_TESTING_make_trait_policy
- (unsigned int index,
- const struct ANASTASIS_Policy *p)
+ANASTASIS_TESTING_make_trait_policy (unsigned int index,
+ const struct ANASTASIS_Policy *p)
{
struct TALER_TESTING_Trait ret = {
.index = index,
.trait_name = ANASTASIS_TESTING_TRAIT_POLICY,
.ptr = (const void *) p
};
+
return ret;
}